Skip to content
Snippets Groups Projects
Commit 0aec128a authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix authflowreq marshalling

parent 4c71a12b
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ const (
// AuthCodeFlowRequest holds a authorization code flow request
type AuthCodeFlowRequest struct {
OIDCFlowRequest
RedirectType string `json:"redirect_type"`
RedirectType string
}
// Native checks if the request is native
......@@ -30,3 +30,9 @@ func (r *AuthCodeFlowRequest) UnmarshalJSON(data []byte) error {
*r = tmp.ToAuthCodeFlowRequest()
return nil
}
// MarshalJSON implements the json marshaler interface
func (r *AuthCodeFlowRequest) MarshalJSON() ([]byte, error) {
r.redirectType = r.RedirectType
return json.Marshal(r.OIDCFlow)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment