Skip to content

auth: Add user profile UI for managing account and bearer tokens

Add a new view enabling for a user to manage its account (email, password) but also its bearer tokens for Web API authentication.

Account management is done by embedding Keycloak account UI in swh-web through an iframe.

This requires an upgrade of the SWH Keycloak theme and content security policy needs also to be updated in Keycloak in order to allow such embedding from the *.softwareheritage.org domains (diff for puppet-swh-site incoming).

User information and permissions are displayed in the view and a link to the Software Heritage Account Management is offered to edit personal information.

The view is reachable by clicking on the username on the top right part of the Web UI once authenticated.

Below are some screenshots of the result:

image image

Closes #2718 (closed)

Depends on swh/infra/puppet/puppet-swh-site!239 (closed)


Migrated from D4319 (view on Phabricator)

Merge request reports