Documentation ¶
Index ¶
- func Introspect(ctx context.Context, rp ResourceServer, token string) (oidc.IntrospectionResponse, error)
- type Option
- type ResourceServer
- func NewResourceServerClientCredentials(issuer, clientID, clientSecret string, option ...Option) (ResourceServer, error)
- func NewResourceServerFromKeyFile(issuer, path string, options ...Option) (ResourceServer, error)
- func NewResourceServerJWTProfile(issuer, clientID, keyID string, key []byte, options ...Option) (ResourceServer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Introspect ¶
func Introspect(ctx context.Context, rp ResourceServer, token string) (oidc.IntrospectionResponse, error)
Types ¶
type Option ¶
type Option func(*resourceServer)
func WithClient ¶
WithClient provides the ability to set an http client to be used for the resource server
func WithStaticEndpoints ¶
WithStaticEndpoints provides the ability to set static token and introspect URL
type ResourceServer ¶
type ResourceServer interface { IntrospectionURL() string HttpClient() *http.Client AuthFn() (interface{}, error) }
func NewResourceServerClientCredentials ¶
func NewResourceServerClientCredentials(issuer, clientID, clientSecret string, option ...Option) (ResourceServer, error)
func NewResourceServerFromKeyFile ¶
func NewResourceServerFromKeyFile(issuer, path string, options ...Option) (ResourceServer, error)
func NewResourceServerJWTProfile ¶
func NewResourceServerJWTProfile(issuer, clientID, keyID string, key []byte, options ...Option) (ResourceServer, error)
Click to show internal directories.
Click to hide internal directories.