Documentation
¶
Index ¶
- type AuthorizeCodeGrantStorage
- type AuthorizeExplicitGrantTypeHandler
- func (c *AuthorizeExplicitGrantTypeHandler) HandleAuthorizeEndpointRequest(_ context.Context, req *http.Request, ar AuthorizeRequester, ...) error
- func (c *AuthorizeExplicitGrantTypeHandler) HandleTokenEndpointRequest(ctx context.Context, req *http.Request, requester AccessRequester, ...) error
- func (c *AuthorizeExplicitGrantTypeHandler) ValidateTokenEndpointRequest(_ context.Context, req *http.Request, request AccessRequester, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeCodeGrantStorage ¶
type AuthorizeCodeGrantStorage interface {
core.AuthorizeCodeStorage
core.AccessTokenStorage
core.RefreshTokenStorage
}
type AuthorizeExplicitGrantTypeHandler ¶
type AuthorizeExplicitGrantTypeHandler struct {
// Enigma is the algorithm responsible for creating a validatable, opaque string.
Enigma enigma.Enigma
// Store is used to persist session data across requests.
Store AuthorizeCodeGrantStorage
// AuthCodeLifespan defines the lifetime of an authorize code.
AuthCodeLifespan time.Duration
// AccessTokenLifespan defines the lifetime of an access token.
AccessTokenLifespan time.Duration
}
CodeAuthorizeEndpointHandler is a response handler for the Authorize Code grant using the explicit grant type as defined in https://tools.ietf.org/html/rfc6749#section-4.1
func (*AuthorizeExplicitGrantTypeHandler) HandleAuthorizeEndpointRequest ¶
func (*AuthorizeExplicitGrantTypeHandler) HandleTokenEndpointRequest ¶
func (*AuthorizeExplicitGrantTypeHandler) ValidateTokenEndpointRequest ¶
func (c *AuthorizeExplicitGrantTypeHandler) ValidateTokenEndpointRequest(_ context.Context, req *http.Request, request AccessRequester, session interface{}) error
implements * https://tools.ietf.org/html/rfc6749#section-4.1.3 (everything)
Click to show internal directories.
Click to hide internal directories.