You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Register a client for the response_types=['token id_token'] for an implicit flow.
Try to get an access token with response_type='id_token token' and it fails, try it with response_type='token id_token' and it works.
Both forms should work according to RFC 6749 3.1.1.
Extension response types MAY contain a space-delimited (%x20) list of
values, where the order of values does not matter (e.g., response
type "a b" is the same as "b a").
The code responsible for this is in provider.py and is a bit too dumb to handle permutations of the order.
try:
rtypes = _cinfo['response_types']
except KeyError:
rtypes = ['code'] # default according to OIDC registration
if ' '.join(areq["response_type"]) not in rtypes:
return error("invalid_request",
"Trying to use unregistered response_typ")
The text was updated successfully, but these errors were encountered:
To reproduce:
Register a client for the
response_types=['token id_token']
for an implicit flow.Try to get an access token with
response_type='id_token token'
and it fails, try it withresponse_type='token id_token'
and it works.Both forms should work according to RFC 6749 3.1.1.
The code responsible for this is in
provider.py
and is a bit too dumb to handle permutations of the order.The text was updated successfully, but these errors were encountered: