Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientError ¶ added in v0.0.15
ClientError converts an error response from an API to the auth error for its status, which wraps it, so a client's callers can check it with errors.Is, as they would the errors of the server's store
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
auth
|
|
|
cmd
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. |
|
httpclient
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: |
|
httphandler
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 |
|
provider
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. |
|
provider/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. |
|
provider/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. |
|
provider/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. |
|
provider/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. |
|
security
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. |
|
store
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. |
|
test
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. |
|
schema
Package schema has the PostgreSQL store's tables and queries, and binds the certificate types in cert/cert to them.
|
Package schema has the PostgreSQL store's tables and queries, and binds the certificate types in cert/cert to them. |
|
test
Package test runs certificate manager tests against PostgreSQL in a container: the manager's own tests, and the tests of what's built on it.
|
Package test runs certificate manager tests against PostgreSQL in a container: the manager's own tests, and the tests of what's built on it. |
|
cmd
|
|
|
auth
command
|
|
|
Package frontend is go-auth's web UI: its modules, such as Credentials, which the package @mutablelogic/go-auth exports, and the auth server's app, which make builds into app/dist, and which a command built with the "frontend" tag embeds, as EmbedFS.
|
Package frontend is go-auth's web UI: its modules, such as Credentials, which the package @mutablelogic/go-auth exports, and the auth server's app, which make builds into app/dist, and which a command built with the "frontend" tag embeds, as EmbedFS. |
|
cmd
Package cmd serves the web UI, and the server's configuration, which it reads, beside the API, when the server is built with the "frontend" tag, which embeds the UI, once it's built, with npm, into frontend/dist, which make does.
|
Package cmd serves the web UI, and the server's configuration, which it reads, beside the API, when the server is built with the "frontend" tag, which embeds the UI, once it's built, with npm, into frontend/dist, which make does. |
|
ldap
|
|
|
cmd
Package ldap has the LDAP manager's command-line flags, for a server
|
Package ldap has the LDAP manager's command-line flags, for a server |
|
httpclient
Package httpclient calls the LDAP API, which ldap/httphandler serves
|
Package httpclient calls the LDAP API, which ldap/httphandler serves |
|
httphandler
Package httphandler registers the HTTP handlers of the LDAP manager: the directory's schema, users, groups and their members, and objects by DN
|
Package httphandler registers the HTTP handlers of the LDAP manager: the directory's schema, users, groups and their members, and objects by DN |
|
manager
Package manager connects to an LDAP directory, and keeps the connection, binding as the manager's user, and reconnecting when it's lost
|
Package manager connects to an LDAP directory, and keeps the connection, binding as the manager's user, and reconnecting when it's lost |
|
parser
Package ldapparser reads the RFC 4512 descriptions of LDAP object classes and attribute types, such as a directory's subschema publishes
|
Package ldapparser reads the RFC 4512 descriptions of LDAP object classes and attribute types, such as a directory's subschema publishes |
|
parser/schema
Package schema has the definitions of LDAP object classes and attribute types, which the parser reads from their RFC 4512 descriptions
|
Package schema has the definitions of LDAP object classes and attribute types, which the parser reads from their RFC 4512 descriptions |
|
schema
Package schema has the LDAP manager's types: objects, with their LDIF, distinguished names, and the directory's object classes and attribute types, with the requests which list them, and its defaults
|
Package schema has the LDAP manager's types: objects, with their LDIF, distinguished names, and the directory's object classes and attribute types, with the requests which list them, and its defaults |
|
test
Package test runs tests against LDAP directories, OpenLDAP, 389 DS and SMB LDS, with a manager connected to each.
|
Package test runs tests against LDAP directories, OpenLDAP, 389 DS and SMB LDS, with a manager connected to each. |
Click to show internal directories.
Click to hide internal directories.