INTO-CPS-Association / DTaaS

:factory: :left_right_arrow: :busts_in_silhouette: Digital Twin as a Service
https://into-cps-association.github.io/DTaaS/
Other
110 stars 55 forks source link

Update user profile based on OAuth data #478

Closed prasadtalasila closed 2 months ago

prasadtalasila commented 8 months ago

A successful OAuth login workflow of react website provides user details from gitlab. It is better to present these details on the user profile page. This profile page can be reached by selecting username (top-right corner of page) and clicking on account.

Resources:

  1. https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce (step-10 is our goal)
  2. OAuth API -> /oauth/userinfo
prasadtalasila commented 8 months ago

New text to be used in the profile tab:

Profile picture The username is username. See more details of the user on SSO OAuth provider (link to profile url). username belongs to groups. (the second sentence is to be used only when user belongs to any groups. If user does not belong to any groups, the second sentence needs to be skipped.

prasadtalasila commented 8 months ago

New text to be used in the settings tab:

Edit the profile on SSO OAuth provider (link to profile url).

prasadtalasila commented 2 months ago

Completed in PR #838