Skip to content

[ENG-11994] - List user's connected identities in admin interface - #11896

Open
Vlad0n20 wants to merge 1 commit into
CenterForOpenScience:developfrom
Vlad0n20:fix/ENG-11994
Open

[ENG-11994] - List user's connected identities in admin interface#11896
Vlad0n20 wants to merge 1 commit into
CenterForOpenScience:developfrom
Vlad0n20:fix/ENG-11994

Conversation

@Vlad0n20

@Vlad0n20 Vlad0n20 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Ticket

Purpose

Changes

Side Effects

QE Notes

CE Notes

Documentation

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For the record, per our pair/discussion:

  • Handle multiple ORCiD IDs (just in case).
  • After ORCiD/GDPR release, add whether each ID has access and/or refresh tokens.
  • In addition, rebase and target ORCiD/GDPR feature branch until it's released, then rebase and target develop.

Note: don't merge until ORCiD/GDPR is released

Cc @sh-andriy and @brianjgeiger

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • Rebase on top of latest develop and re-target develop for now
  • Fix conflicts and unit tests if any
  • (New after 26.20 release) Add information about if access or refresh token exists (don't reveal them)
  • I also suggest show pending (CREATE/LINK status) identities too, this helps PO investigate ORCiD confirmation issues. Check with PO to see if they want this.

Vlad0n20 added a commit to Vlad0n20/osf.io that referenced this pull request Sep 11, 2026
Rebuilds this feature on top of develop now that the ORCID/GDPR rewrite
(ENG-12132) has shipped there, per review feedback on CenterForOpenScience#11896. The old
branch was based on a stale develop and mixed in commits already
superseded by that rewrite; two required model methods
(record_external_identity_connected, remove_external_identity) were
referenced by views/tests but had gone missing along the way.

- Add OSFUser.record_external_identity_connected() to log an admin
  entry when a user connects an external identity (ORCID), and
  OSFUser.remove_external_identity() to best-effort revoke the
  provider token, unlink the identity, and kill the user's sessions.
- Wire record_external_identity_connected() into the CAS/API
  confirmation flows, and pop the leftover ORCID token session keys
  in clear_external_first_login_anonymous_session_data().
- Add an admin panel section listing a user's connected identities
  (with access/refresh token presence and pending CREATE/LINK status)
  and a control to remove one, addressing the reviewer's two follow-up
  asks directly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J3gjU71vvMam7QF6spzBkN
@Vlad0n20
Vlad0n20 force-pushed the fix/ENG-11994 branch 2 times, most recently from d67190e to e57784b Compare September 11, 2026 14:39
@Vlad0n20
Vlad0n20 changed the base branch from feature/pbs-26-15 to develop September 11, 2026 14:40
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

Successfully merging this pull request may close these issues.

3 participants