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
Otherwise I don't get all needed user information inside of the token from ADFS. I do not exactly know why the ADFS of my company needs this resource parameter to return full user information as part of the token, but without the resource parameter, it doesn't work.
I couldn't find a config attribute in this package to specify this. Am I overlooking something? I am wondering wether this is interesting for a bigger audience.
In flask_oidc/__init__.py in the function redirect_to_auth_server, we could simply add this line in order to make it configurable:
if current_app.config['OIDC_RESOURCE_URI']: extra_params['resource'] = current_app.config['OIDC_RESOURCE_URI']
Is there a simpler way or would this be a good extension of the config?
The text was updated successfully, but these errors were encountered:
timbrnbrr
changed the title
Add resource parameter in resulting authorization URI
Add resource parameter to sent authorization URI
Feb 28, 2022
I use flask-oidc with microsoft ADFS. I need to specify the
resource
parameter in the sent authorization URI like:https://xyz.com/adfs/oauth2/authorize/?client_id=abc&redirect_uri=abc&scope=openid+profile+allatclaims&access_type=offline&response_type=code&state=123&resource=myres
Otherwise I don't get all needed user information inside of the token from ADFS. I do not exactly know why the ADFS of my company needs this
resource
parameter to return full user information as part of the token, but without the resource parameter, it doesn't work.I couldn't find a config attribute in this package to specify this. Am I overlooking something? I am wondering wether this is interesting for a bigger audience.
In
flask_oidc/__init__.py
in the functionredirect_to_auth_server
, we could simply add this line in order to make it configurable:if current_app.config['OIDC_RESOURCE_URI']: extra_params['resource'] = current_app.config['OIDC_RESOURCE_URI']
Is there a simpler way or would this be a good extension of the config?
The text was updated successfully, but these errors were encountered: