auth/

directory
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: Apache-2.0

Directories

Path Synopsis
Package cmd has the commands which sign in to a server, in a browser, with OAuth, and keep the token, which the other commands send, with ClientEndpoint, and sign out.
Package cmd has the commands which sign in to a server, in a browser, with OAuth, and keep the token, which the other commands send, with ClientEndpoint, and sign out.
Package httpclient is a general OAuth client, with go-client, which signs in to a resource which needs to be authorized, such as an MCP server's, or go-auth's own APIs:
Package httpclient is a general OAuth client, with go-client, which signs in to a resource which needs to be authorized, such as an MCP server's, or go-auth's own APIs:
Package httphandler registers the HTTP handlers which sign people in with providers, such as Google, GitHub and LDAP, and exchange who they are for what the server makes of it
Package httphandler registers the HTTP handlers which sign people in with providers, such as Google, GitHub and LDAP, and exchange who they are for what the server makes of it
Package provider has the interfaces of the providers people sign in with, such as Google, GitHub and LDAP, which exchange what proves who someone is for an identity.
Package provider has the interfaces of the providers people sign in with, such as Google, GitHub and LDAP, which exchange what proves who someone is for an identity.
file
Package file keeps sessions in files, in a directory, one for each, named by the SHA-256 of its token, which isn't kept, so they last when the server restarts, without a database.
Package file keeps sessions in files, in a directory, one for each, named by the SHA-256 of its token, which isn't kept, so they last when the server restarts, without a database.
github
Package github is a provider of GitHub, or GitHub Enterprise, which is signed in with at GitHub, as an OAuth app, which isn't OpenID Connect, so the identity is the user GitHub's API says the token is for.
Package github is a provider of GitHub, or GitHub Enterprise, which is signed in with at GitHub, as an OAuth app, which isn't OpenID Connect, so the identity is the user GitHub's API says the token is for.
ldap
Package ldap is a provider of an LDAP directory, which is signed in with a username and password, which is checked with a bind as the user, whose groups are the identity's.
Package ldap is a provider of an LDAP directory, which is signed in with a username and password, which is checked with a bind as the user, whose groups are the identity's.
oidc
Package oidc is a provider which is an OpenID Connect issuer, such as Google, Microsoft or Keycloak, which is signed in with at its own pages, and whose ID tokens are checked against its keys.
Package oidc is a provider which is an OpenID Connect issuer, such as Google, Microsoft or Keycloak, which is signed in with at its own pages, and whose ID tokens are checked against its keys.
Package security is the security scheme which the server's operations need, with their scopes: a session's token, as a bearer token, or the session's cookie, which a sign-in sets.
Package security is the security scheme which the server's operations need, with their scopes: a session's token, as a bearer token, or the session's cookie, which a sign-in sets.
Package store has the interfaces of what an identity is exchanged with: a hook, which allows it, or refuses it, the users, which say who it is, and the scopes they have, and the sessions, which they're signed in with, and the exchanger, which exchanges an identity for a session.
Package store has the interfaces of what an identity is exchanged with: a hook, which allows it, or refuses it, the users, which say who it is, and the scopes they have, and the sessions, which they're signed in with, and the exchanger, which exchanges an identity for a session.
Package test has fake providers, which tests sign in with: an OpenID Connect issuer, and GitHub, each an HTTP server, which gives the identity it's told to, for a code, once, when it's exchanged with the verifier of its PKCE challenge.
Package test has fake providers, which tests sign in with: an OpenID Connect issuer, and GitHub, each an HTTP server, which gives the identity it's told to, for a code, once, when it's exchanged with the verifier of its PKCE challenge.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL