Repository navigation
Description
Why
Desktop apps, CLIs and developer tools are a common way to use an identity platform, and the easiest place to get sign-in wrong: an embedded webview that captures passwords, a client secret shipped in the binary, tokens in a plain file, or passkeys tried inside a webview where the origin cannot match the relying party. Once the OpenID Provider (fells-code/seamless-auth-api#387) and native public clients (fells-code/seamless-auth-api#508) exist, adopters need one page that shows the right way.
What
- A guide for native and desktop apps:
- Register a public client, with no secret.
- Open the system browser for the authorization request (RFC 8252); never an embedded webview.
- Use a loopback redirect on a random port, or a private-use scheme.
- PKCE with
S256. - Exchange the code, and keep tokens in the OS keychain (macOS Keychain, Windows Credential Manager, Secret Service on Linux).
- Refresh, sign out with revocation (feat(oidc): token introspection and revocation endpoints (RFC 7662 and RFC 7009) seamless-auth-api#511), and request tokens for a named API (feat(oidc): access tokens for a named API, with scopes (RFC 8707 and RFC 9068) seamless-auth-api#509).
- Why passkeys run on the hosted login page in the browser, on the relying party's own domain, and not in an app's webview (
tauri://,app://or file origins cannot match the RP ID). - Examples for at least one desktop framework (Tauri or Electron) and a CLI, kept runnable so they double as conformance checks.
- Where it applies: where DPoP (feat: sender-constrained tokens with DPoP (RFC 9449) seamless-auth-api#512) and device-bound keys will fit, once they exist.
Done when
The guide and a runnable example are published and kept running in CI. The example is a desktop app and a small backend API: the app signs in with a passkey through the system browser against a local Seamless Auth instance, the backend verifies its access token with a verify-only adapter, one backend route answers the RFC 9470 challenge until the user steps up, and the backend sends a notice through a client link. Nothing in it is specific to one product. Design: fells-code/seamless-auth-api ADR 0002, N9 and N11 (fells-code/seamless-auth-api#550). The client-side rules, redirects, CLI and device flow already shipped in the native apps guide (#147).
Activity
Bccorb commentedon Nov 1, 2026
The guide shipped in v0.21 (https://docs.seamlessauth.com/build/native-apps-oidc, docs#147), covering loopback and private-use redirects, PKCE, credential stores, refresh, revocation, API tokens, the device grant and why passkeys run on the hosted page. The runnable desktop example (Tauri or Electron) and a CLI example kept runnable in CI are not built. Moving to v0.22 with the scope reduced to those examples.
[-]docs: sign-in for native, desktop and CLI apps with OIDC (RFC 8252)[/-][+]docs: runnable desktop and CLI examples for native OIDC sign-in[/+]docs: add a runnable native CLI example and CLI provider sign-in
Bccorb commentedon Nov 9, 2026
Not closed yet. Moved onto the published API v0.23.0 and edge v0.4.0 images (fells-code/seamless-auth-oidc-provider#67 and #171), both examples fail. The details are on #171. Those failures need fixing before this closes.
fix(grants): give each native authorization its own grant (#68)
ci(examples): run the native examples on edge v0.4.1
chore(local): run the recipe on edge v0.4.1 (#71)
ci(examples): pin the native examples to the recipe on provider main
Bccorb commentedon Nov 10, 2026
Done. Both runnable examples are on
main: the desktop app with its backend (#158) and the CLI (#160). Their CI now runs against the published API v0.23.0 and edge v0.4.1 images (#171, merged as c094f51), and both pass end to end: CLI, desktop. The weekly scheduled runs keep them honest.Running against the published images first turned up an edge v0.4.0 regression in native grant handling. It was fixed in fells-code/seamless-auth-oidc-provider#68 and released as edge v0.4.1.