@tryopenbot/auth-provider
v0.2.0
Published
Owner authentication for OpenBot control surfaces. Tilde is the default OIDC authority; each installation has its own audience and public PKCE client registration.
Readme
Auth provider
Owner authentication for OpenBot control surfaces. Tilde is the default OIDC authority; each installation has its own audience and public PKCE client registration.
Public API
AuthProviderdefines authorization URL creation, PKCE code exchange, refresh, access-token verification, and the public native-client configuration the control service exposes for an installation.NativeAuthConfigurationcontains only the authorization endpoint, token endpoint, public client ID, and requested scope. It never contains tokens, client secrets, or Tilde service credentials.OwnerPrincipalis the verified owner identity and its groups and scopes.OAuthTokenscarries the access token, optional refresh token, and expiry returned by an authorization server.AuthProviderErrorclassifies invalid configuration, invalid tokens, and failed exchanges at the provider boundary.TildeAuthProviderreconciles the installation's Tilde OIDC registration, registers the installation-specific public client, validates audience-restricted owner access tokens, and implements theAuthProvidercontract. Development reconciliation includes the local Vite callback origins without replacing the deployed callback.
