package
0.0.44
Repository: https://github.com/xenitab/go-oidc-middleware.git
Documentation: pkg.go.dev

# Functions

New sets up a new test OpenID Provider.
NewTesting sets up a new test OpenID Provider.
WithDefaultTestUser configures the default test user, needs to match one of the users provided in `WithTestUsers()`.
WithIssuer configures the issuer claim for tokens and addresses in metadata.
WithLoginPrompt enables login prompt if there are more than one Test User.
WithOpaqueAccessTokens enables opaque access tokens.
WithoutAutoStart disables the autostart of the http server.
WithTestUsers configures the users that can be used to issue tokens.
WithTokenExpiration configures the expiration for tokens.

# Constants

JwtAccessTokenType sets the access token to be a JWT.
OpaqueAccessTokenType sets the access token to be opaque.

# Structs

Metadata contains the information exposed through `/.well-known/openid-configuration`.
OPTest is the struct used for the test OpenID Provider.
OPTesting is a wrapper for the OPTest to be used in tests.
Options is the configuration object for OPTest.
No description provided by the author
TokenResponse contains the token endpoint response data.

# Type aliases

AccessTokenType defines the type of token to be used.
Option is used to configure functional options for OPTest.