Documentation ¶
Index ¶
- type Handler
- func (c *Handler) CanHandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) (handle bool)
- func (c *Handler) CanSkipClientAuth(ctx context.Context, requester oauth2.AccessRequester) (skip bool)
- func (c *Handler) HandleAuthorizeEndpointRequest(ctx context.Context, requester oauth2.AuthorizeRequester, ...) (err error)
- func (c *Handler) HandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) (err error)
- func (c *Handler) PopulateTokenEndpointResponse(ctx context.Context, requester oauth2.AccessRequester, ...) (err error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { AuthorizeCodeStrategy hoauth2.AuthorizeCodeStrategy Storage Storage Config interface { oauth2.EnforcePKCEProvider oauth2.EnforcePKCEForPublicClientsProvider oauth2.EnablePKCEPlainChallengeMethodProvider } }
func (*Handler) CanHandleTokenEndpointRequest ¶
func (*Handler) CanSkipClientAuth ¶
func (*Handler) HandleAuthorizeEndpointRequest ¶
func (c *Handler) HandleAuthorizeEndpointRequest(ctx context.Context, requester oauth2.AuthorizeRequester, responder oauth2.AuthorizeResponder) (err error)
func (*Handler) HandleTokenEndpointRequest ¶
func (c *Handler) HandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) (err error)
HandleTokenEndpointRequest implements oauth2.TokenEndpointHandler.
TODO: Refactor time permitting.
func (*Handler) PopulateTokenEndpointResponse ¶
func (c *Handler) PopulateTokenEndpointResponse(ctx context.Context, requester oauth2.AccessRequester, responder oauth2.AccessResponder) (err error)
type Storage ¶
type Storage interface { GetPKCERequestSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error) CreatePKCERequestSession(ctx context.Context, signature string, requester oauth2.Requester) error DeletePKCERequestSession(ctx context.Context, signature string) error }
Click to show internal directories.
Click to hide internal directories.