Skip to content

show User their DRF API token#1472

Merged
phycodurus merged 1 commit intodevfrom
1468-display-users-drf-api-token
Mar 25, 2026
Merged

show User their DRF API token#1472
phycodurus merged 1 commit intodevfrom
1468-display-users-drf-api-token

Conversation

@phycodurus
Copy link
Copy Markdown
Member

  • in tom_common/templatetags/user_extras.py: in the user_data inclusion_tag, add the DRF auth_token (as drf_api_token) to the context sent to the User's Profile card

  • In the Profile Card (tom_common/templates/tom_common/partials/user_data.html), template, check for the drf_api_token in the context and, if it's there, display it.

closes #1468

@phycodurus phycodurus requested a review from jchate6 March 24, 2026 19:21
@phycodurus phycodurus moved this to Needs Review in TOM Toolkit Mar 24, 2026
Copy link
Copy Markdown
Contributor

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
Step 1 done.

@phycodurus phycodurus merged commit bcb15ac into dev Mar 25, 2026
26 checks passed
@github-project-automation github-project-automation bot moved this from Needs Review to Merged (to dev) in TOM Toolkit Mar 25, 2026
@phycodurus phycodurus deleted the 1468-display-users-drf-api-token branch March 25, 2026 16:31
@jchate6 jchate6 moved this from Merged (to dev) to Released in TOM Toolkit Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Display User's DRF API Token in their Profile card

2 participants