Documentation ¶
Overview ¶
Package oidcadaptor implements OpenID Connect authorization.
Index ¶
- type OIDCAdaptor
- func (o *OIDCAdaptor) Close()
- func (o *OIDCAdaptor) Handle(ctx *context.Context) (result string)
- func (o *OIDCAdaptor) Inherit(previousGeneration filters.Filter)
- func (o *OIDCAdaptor) Init()
- func (o *OIDCAdaptor) Kind() *filters.Kind
- func (o *OIDCAdaptor) Name() string
- func (o *OIDCAdaptor) Spec() filters.Spec
- func (o *OIDCAdaptor) Status() interface{}
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OIDCAdaptor ¶
type OIDCAdaptor struct {
// contains filtered or unexported fields
}
OIDCAdaptor is the filter for OpenID Connect authorization.
func (*OIDCAdaptor) Handle ¶
func (o *OIDCAdaptor) Handle(ctx *context.Context) (result string)
Handle handles the request.
func (*OIDCAdaptor) Inherit ¶
func (o *OIDCAdaptor) Inherit(previousGeneration filters.Filter)
Inherit inherits previous generation of the filter instance.
func (*OIDCAdaptor) Kind ¶
func (o *OIDCAdaptor) Kind() *filters.Kind
Kind returns the kind of filter.
func (*OIDCAdaptor) Name ¶
func (o *OIDCAdaptor) Name() string
Name returns the name of the OIDCAdaptor filter instance.
func (*OIDCAdaptor) Spec ¶
func (o *OIDCAdaptor) Spec() filters.Spec
Spec returns the spec used by the OIDCAdaptor instance.
func (*OIDCAdaptor) Status ¶
func (o *OIDCAdaptor) Status() interface{}
Status returns the status of the filter instance.
type Spec ¶
type Spec struct { filters.BaseSpec `yaml:",inline"` CookieName string `json:"cookieName"` ClientID string `json:"clientId" jsonschema:"required"` ClientSecret string `json:"clientSecret" jsonschema:"required"` Discovery string `json:"discovery"` // If Discovery not configured, following should be configured for OAuth2 AuthorizationEndpoint string `json:"authorizationEndpoint"` TokenEndpoint string `json:"tokenEndpoint"` UserInfoEndpoint string `json:"userinfoEndpoint"` RedirectURI string `json:"redirectURI" jsonschema:"required"` }
Spec defines the spec of OIDCAdaptor.
Click to show internal directories.
Click to hide internal directories.