Documentation ¶
Index ¶
- type CallbackHookConstructor
- type O2CBuilderConstructor
- type OIDC
- func (s *OIDC) Oauth2Cfg(ctx context.Context, req *http.Request) (*oauth2.Config, error)
- func (s *OIDC) SetupIDTokenHook(hook func(ctx context.Context, token string) http.HandlerFunc)
- func (s *OIDC) SetupUserInfoHook(hook func(ctx context.Context, userInfo *oidc.UserInfo) error)
- func (s *OIDC) VerifyIDToken(ctx context.Context, rawIDToken string) (*oidc.IDToken, error)
- type Oauth2
- type OidcConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackHookConstructor ¶
type O2CBuilderConstructor ¶
type OIDC ¶
func NewOIDC ¶
func NewOIDC(cfg *OidcConfig) *OIDC
func (*OIDC) SetupIDTokenHook ¶
func (*OIDC) SetupUserInfoHook ¶
type Oauth2 ¶
type Oauth2 struct {
// contains filtered or unexported fields
}
func (*Oauth2) SetCallbackHook ¶
func (s *Oauth2) SetCallbackHook(callbackHook CallbackHookConstructor)
func (*Oauth2) SetOauth2ConfigBuilder ¶
func (s *Oauth2) SetOauth2ConfigBuilder(buildOauth2Config O2CBuilderConstructor)
type OidcConfig ¶
Click to show internal directories.
Click to hide internal directories.