feat(auth): add OIDC device-code login flow#7
Open
eliteprox wants to merge 2 commits into
Open
Conversation
Restore device-flow support stacked on the PymtHouse integration PR: initiate-login URI, device approval completion, device-approved page, signer device exchange facade, and login UI branches for ?flow=device. device-flow.ts imports createPmtHouseClientForPublicApp from pymthouse-bff to avoid duplicating M2M client setup.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5 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.
Summary
Stacked on #3. Adds OIDC device-code login so CLI clients (e.g. python-gateway) can authenticate via browser approval.
device-flow.tswith cookie state andcompleteDashboardDeviceApproval(importscreatePmtHouseClientForPublicAppfrompymthouse-bff)./api/auth/initiate-login— Pymthouse initiate-login URI entry point./api/auth/device/complete— POST handler after user signs in on dashboard./device-approvedconfirmation page./api/signer/device/exchange— device token exchange facade for CLI clients.LoginPageand/loginroute with?flow=devicehandling.Config
Register the initiate-login URI on the Pymthouse app (documented in
.env.example):https://<dashboard-host>/api/auth/initiate-loginTest plan
/device-approved/api/signer/device/exchangereturns tokens for approved device codes/login(without?flow=device) is unchanged