Skip to content

Drop userinfo dump from /me #92

Open
@soxofaan

Description

@soxofaan

from https://github.com/openEOPlatform/architecture-docs/issues/31#issuecomment-946856513

resp = requests.get(userinfo_url, auth=BearerAuth(bearer=access_token))
resp.raise_for_status()
userinfo = resp.json()
# The "sub" claim is the only claim in the response that is guaranteed per OIDC spec
# TODO: do we have better options?
user_id = userinfo["sub"]
return User(
user_id=user_id,
info={"oidc_userinfo": userinfo},

userinfo dump (included in /me response) is handy for debugging/troubleshooting OIDC/EGI handling, but at one point we should not return it from /me anymore

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions