File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ func (app *OAuth2Application) TableName() string {
137
137
138
138
// ContainsRedirectURI checks if redirectURI is allowed for app
139
139
func (app * OAuth2Application ) ContainsRedirectURI (redirectURI string ) bool {
140
+ // OAuth2 requires the redirect URI to be an exact match, no dynamic parts are allowed.
141
+ // https://stackoverflow.com/questions/55524480/should-dynamic-query-parameters-be-present-in-the-redirection-uri-for-an-oauth2
142
+ // https://www.rfc-editor.org/rfc/rfc6819#section-5.2.3.3
143
+ // https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
144
+ // https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-12#section-3.1
140
145
contains := func (s string ) bool {
141
146
s = strings .TrimSuffix (strings .ToLower (s ), "/" )
142
147
for _ , u := range app .RedirectURIs {
You can’t perform that action at this time.
0 commit comments