Closed dholth closed 8 years ago
I'll test it. But I don't understand why you have scope=code%20id_token
... shouldn't be the value of the response_type parameter?.
Btw, if you are trying to do an Authentication (oidc request) you must include openid
in your scope list.
Thanks. If I set scope to "code id_token openid" in the client then the request just fails. Is django-oidc-provider parsing scope properly? Or does that exact string need to be added to the "Response Type" dropdown on the Change Client page? I would type it in, but it is a selection widget.
scope is for for openid or oauth2 claims (openid, profile, email, address, etc). response_type is to define the flow. Values are:
code
: Authorization Code Flowid_token
: id_token (Implicit Flow)id_token token
: id_token token (Implicit Flow)code token
: code token (Hybrid Flow)code id_token
: code id_token (Hybrid Flow)code id_token token
: code id_token token (Hybrid Flow)So in your case your request should be:
/authorize?scope=openid+profile+email&client_id=471746&state=4211b60d068bc9419178f40bae27f242&nonce=f43023951b2f2f0d0115f1358d755a33&redirect_uri=https%3A%2F%2Flocalhost%2Foauth2%2Fcallback&response_type=code%20id_token
Thank you so much. One last question, is there a reason one client cannot use more than one response_type? Or should I just have multiple clients?
It works, in 'code' mode (set in both RP and OP), with the mentioned scope.
Thanks for django-oidc-provider, it is amazing.
I'm trying to use it with lua-resty-openidc which performs the following requests
django-oidc-provider returns an empty
{}
id_token becauseis_authentication
is False. https://github.com/juanifioren/django-oidc-provider/blob/v0.4.x/oidc_provider/lib/endpoints/token.py#L152But, lua-resty-openidc expects a non-empty id_token with at minimum the issuer.
Solution so far is just to patch
is_authentication or True
. Am I missing something by not requesting the right token earlier from lua-resty-openidc?