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

change default redirect type in auth code grant type to 'native'

parent 1b6ecd90
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ type AuthCodeFlowRequest struct {
// Native checks if the request is native
func (r *AuthCodeFlowRequest) Native() bool {
return r.RedirectType == api.RedirectTypeNative
return r.RedirectType != api.RedirectTypeWeb
}
// UnmarshalJSON implements the json unmarshaler interface
......
......@@ -30,7 +30,7 @@ func NewOIDCFlowRequest() *OIDCFlowRequest {
},
},
ResponseType: model.ResponseTypeToken,
redirectType: api.RedirectTypeWeb,
redirectType: api.RedirectTypeNative,
GrantType: -1,
}
}
......
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