{% extends "layout.html" %} {% comment %} Copyright (C) 2020 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% load render_bundle from webpack_loader %} {% load swh_templatetags %} {% block title %} User profile – Software Heritage {% endblock %} {% block header %} {% render_bundle 'auth' %} {% endblock %} {% block navbar-content %}
Below are the details of your user account. You can edit your personal information in the Software Heritage Account Management interface.
| Username | {{ user.username }} |
|---|---|
| First name | {{ user.first_name }} |
| Last name | {{ user.last_name }} |
| {{ user.email }} | |
| Permissions: |
{% for perm in user.get_all_permissions %}
{{ perm }} {% endfor %} |
That interface enables to manage bearer tokens for Web API authentication. A token has to be sent in HTTP authorization headers to make authenticated API requests.
For instance when using curl proceed as follows:
curl -H "Authorization: Bearer ${TOKEN}" {{ site_base_url }}/api/...
Please not that a bearer token will automatically expire after 30 days of inactivity.
| Creation date | Actions |
|---|