Repository navigation
feat: add react-oauth use-case template - #1
Merged
Merged
Conversation
An OAuth-first React (Vite) starter that lists the auth server's configured OAuth providers (useAuth().listOAuthProviders / startOAuthLogin) and completes the login on an /oauth/callback route (finishOAuthLogin). Registered with alias "oauth" and a verify block scoping conformance to the oauth flow; react-vite gains alias "basic".
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an OAuth-first React (Vite) starter as a second web example, proving out use-case templates within a single framework.
What it adds
templates/web/react-oauth/: an OAuth-first app. A focused/loginlists the auth server's configured providers and starts the redirect (useAuth().startOAuthLogin), an/oauth/callbackroute completes it (finishOAuthLogin), and a protected home shows the signed-in identity.template.jsonwith averifyblock scoping its conformance to theoauthflow.registry.json: the new entry withalias: "oauth"(forseamless init --oauth);react-vitegainsalias: "basic".Validation
tsc -b && vite buildclean.@oauthspec), the browser flow passes end to end (provider button, IdP redirect, callback, signed-in)..envcorrectly through the registry.Note
Full multi-template conformance in this repo's PR CI activates once the seamless-cli change that loops every web template lands on
main. Until then this PR's conformance exercises react-vite (unchanged).