providers/oauth2: fix incorrect scope permissions shown (#6696)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-08-30 17:27:40 +02:00
committed by GitHub
parent bfd0fb66b3
commit 3afff1bae9
3 changed files with 10 additions and 4 deletions

View File

@ -55,7 +55,7 @@ def validate_code(code: int, request: HttpRequest) -> Optional[HttpResponse]:
if not app:
return None
scope_descriptions = UserInfoView().get_scope_descriptions(token.scope)
scope_descriptions = UserInfoView().get_scope_descriptions(token.scope, token.provider)
planner = FlowPlanner(token.provider.authorization_flow)
planner.allow_empty_flows = True
try: