Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username for inference owner #8

Open
whisperingpixel opened this issue Mar 7, 2022 · 0 comments
Open

Username for inference owner #8

whisperingpixel opened this issue Mar 7, 2022 · 0 comments

Comments

@whisperingpixel
Copy link

Problem

It is possible to login with e-mail address or the username; However, Sen2Cube.at uses internally always the username, e.g. to create internal directories for output locations / filtering inferences etc.
If the e-mail address is used to login, the "owner" attribute of the inference table will have it as value but it will be treated as a different user. For instance, the inference will then not be accessible anymore from the Web frontend or other parts of the system.

Suggestion

After successful login, make an (authenticated) request to the Keycloak userinfo endpoint ({{server}}/auth/realms/{{realm}}/protocol/openid-connect/userinfo) to obtain the preferred_username value for the owner attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant