Skip to content

SDKS-4655: Create Central Login App Using OIDC Client#98

Merged
SteinGabriel merged 6 commits intomainfrom
SDKS-4655
Mar 17, 2026
Merged

SDKS-4655: Create Central Login App Using OIDC Client#98
SteinGabriel merged 6 commits intomainfrom
SDKS-4655

Conversation

@SteinGabriel
Copy link
Copy Markdown
Contributor

@SteinGabriel SteinGabriel commented Mar 10, 2026

https://pingidentity.atlassian.net/browse/SDKS-4655

Summary

This PR implements a centralized OIDC React sample and
separating embedded-login behavior into a dedicated journey sample.

What’s included

  • Added new app: javascript/reactjs-todo-oidc

    • Centralized OIDC login flow using @forgerock/oidc-client
    • OIDC config from env via:
      • WEB_OAUTH_CLIENT
      • WELLKNOWN_URL
      • REALM_PATH
      • SCOPE
    • Redirect/callback flow through /callback.html
    • Protected route handling for /todos
    • OIDC-focused e2e coverage (oidc-login, oidc-protected-route, oidc-todo)
    • Removed register surface (/register and Sign Up CTA) for OIDC sample
    • Updated OIDC docs (README.md and client/README.md) to match current behavior
  • Renamed existing sample:

    • javascript/reactjs-todojavascript/reactjs-todo-journey
    • Keeps embedded/journey login behavior
  • Archived vanilla centralized-login samples:

    • javascript/central-login-oidcjavascript/Archived/central-login-oidc
    • javascript/central-login-oidc-client
      javascript/Archived/central-login-oidc-client

Notes

  • This branch contains extensive rename/move operations, so review with rename detection
    enabled.
  • As described in the ticket, reactjs-todo has been renamed to reactjs-todo-journey. However, it appears this is the same journey app implementation currently in feat(react-journey): add react journey app #86. If that's the case, we might want to remove reactjs-todo-journey once that pull request is merged.

Copy link
Copy Markdown
Contributor

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

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

This PR looks good. I'm going to pull this in locally and run it. If all runs well, I'll approve this PR.

cerebrl
cerebrl previously approved these changes Mar 10, 2026
Copy link
Copy Markdown
Contributor

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

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

Worked good locally. I'm approving this PR. Nice job, @SteinGabriel.

Copy link
Copy Markdown
Contributor

@vatsalparikh vatsalparikh left a comment

Choose a reason for hiding this comment

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

Some suggestions

Comment thread javascript/reactjs-todo-journey/README.md
Comment thread javascript/reactjs-todo-journey/client/README.md
Comment thread javascript/reactjs-todo-oidc/client/context/oidc.context.js
@vatsalparikh
Copy link
Copy Markdown
Contributor

Tried the OIDC flow locally. Looks great, approving!

vatsalparikh
vatsalparikh previously approved these changes Mar 12, 2026
Copy link
Copy Markdown
Contributor

@ancheetah ancheetah left a comment

Choose a reason for hiding this comment

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

Sorry to come in last minute. Left some comments on CI and other setup.

Comment thread .github/workflows/CI.yml Outdated
Comment thread .github/workflows/CI.yml Outdated
Comment thread javascript/reactjs-todo-oidc/package.json Outdated
Comment thread javascript/reactjs-todo-oidc/package.json Outdated
Comment thread javascript/reactjs-todo-oidc/.env.example Outdated
@SteinGabriel SteinGabriel merged commit 76722e2 into main Mar 17, 2026
16 checks passed
@SteinGabriel SteinGabriel deleted the SDKS-4655 branch March 17, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants