Skip to content

[ENG-12073] New ORCiD SSO authentication flow between OSF and CAS - #117

Merged
cslzchen merged 6 commits into
CenterForOpenScience:feature/orcid-reworkfrom
cslzchen:feature/orcid-rework-with-at
Sep 2, 2026
Merged

[ENG-12073] New ORCiD SSO authentication flow between OSF and CAS#117
cslzchen merged 6 commits into
CenterForOpenScience:feature/orcid-reworkfrom
cslzchen:feature/orcid-rework-with-at

Conversation

@cslzchen

@cslzchen cslzchen commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Ticket

ENG-12073

Purpose

  • New ORCiD SSO authentication flow between OSF and CAS (after apereo and pac4j has handled OAuth between CAS and ORCiD)

  • It releases access token and refresh token to OSF after successful ORCiD SSO

  • The following will be done in a follow-up PR:

    • Add JavaDoc
    • Remove debugging logs
    • Add error handling

POC: Rewrite ORCiD SSO to use OSF credentials and flow and release access token to OSF

  • This is a temporary PoC implementation (with debugging logs) that let ORCiD SSO use OSF's credential/authentication flow.
  • Need to move this to its own credential/authentication flow for the full implementation.

Changes

See diff

Dev Notes

See ticket

QA Notes

See ticket

Dev-Ops Notes

See ticket

@cslzchen
cslzchen marked this pull request as ready for review August 31, 2026 20:40
@cslzchen cslzchen changed the title [ENG-11829] POC: Rewrite ORCiD SSO to use OSF credentials and flow and release access token to OSF [ENG-12073][ENG-11829] New ORCiD SSO authentication flow between OSF and CAS Aug 31, 2026
@cslzchen

Copy link
Copy Markdown
Contributor Author

Note: don't squash merge because we want to preserve the "WAR-Overlay" diff: 47f0be6

@cslzchen
cslzchen changed the base branch from develop to feature/orcid-rework September 2, 2026 19:14

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Update: will handle the rest in a different PR, merging this into the feature branch so we can dev-test and debug it on staging1.

Comment on lines +46 to +49
if (StringUtils.isNoneBlank(refreshToken)) {
logger.debug("add refresh_token: {} to profile", token);
profile.addAttribute(REFRESH_TOKEN, refreshToken);
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment for easy reference: I "WAR Overlay"ed org.pac4j.oauth.profile.creator.OAuth20ProfileCreator to add refresh token to profile attributes.

@cslzchen
cslzchen merged commit 85ffa8e into CenterForOpenScience:feature/orcid-rework Sep 2, 2026
1 check passed
@cslzchen cslzchen changed the title [ENG-12073][ENG-11829] New ORCiD SSO authentication flow between OSF and CAS [ENG-12073] New ORCiD SSO authentication flow between OSF and CAS Sep 4, 2026
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.

1 participant