package
0.1.2
Repository: https://github.com/observatorium/api.git
Documentation: pkg.go.dev

# Functions

GetGroups extracts the groups from provided context.
GetSubject extracts the subject from provided context.
GetTenant extracts the tenant from provided context.
NewMTLS creates a set of Middlewares for all specified tenants.
NewOIDC creates a single http.Handler and a set of Middlewares for all tenants that is able to authenticate requests and provide the authorization code grant flow for users.
NewProvider creates a new OIDCProvider.
WithTenant finds the tenant from the URL parameters and adds it to the request context.
WithTenantHeader returns a new middleware that adds the ID of the tenant to the specified header.
WithTenantMiddlewares creates a single Middleware for all provided tenant-middleware sets.

# Structs

MTLSConfig represents the mTLS configuration for a single tenant.
OIDCConfig represents a generic OIDC configuration.
OIDCProvider wraps the oidc.Provider in an opinionated way to create login and callback handlers as well as HTTP middlewares to authenticate requests against the provider.
TenantOIDCConfig represents the OIDC configuration for a single tenant.

# Type aliases

Middleware is a convenience type for functions that wrap http.Handlers.