update id

This commit is contained in:
2025-10-30 02:02:23 -03:00
parent f284b64c60
commit 76dfc44b71
25 changed files with 103 additions and 40 deletions

View File

@@ -48,11 +48,13 @@ def authorize():
if not client_scopes.issubset(user_scopes):
raise ForbiddenError('Access denied')
return server.create_authorization_response(
response = server.create_authorization_response(
request=router.current_event,
grant_user=sub,
grant=grant,
)
logger.debug(response)
except JoseError as err:
logger.exception(err)
raise BadRequestError(str(err))
@@ -62,6 +64,8 @@ def authorize():
status_code=err.status_code,
msg=dict(err.get_body()), # type: ignore
)
else:
return response
def _user_scopes(sub: str) -> set: