Documentation
¶
Index ¶
- type AuthorizeCodeGrantStorage
- type AuthorizeExplicitGrantTypeHandler
- func (c *AuthorizeExplicitGrantTypeHandler) HandleAuthorizeEndpointRequest(ctx context.Context, req *http.Request, ar AuthorizeRequester, ...) error
- func (c *AuthorizeExplicitGrantTypeHandler) HandleTokenEndpointRequest(ctx context.Context, r *http.Request, request fosite.AccessRequester) error
- func (c *AuthorizeExplicitGrantTypeHandler) IssueAuthorizeCode(ctx context.Context, req *http.Request, ar AuthorizeRequester, ...) error
- func (c *AuthorizeExplicitGrantTypeHandler) PopulateTokenEndpointResponse(ctx context.Context, req *http.Request, requester fosite.AccessRequester, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeExplicitGrantTypeHandler ¶
type AuthorizeExplicitGrantTypeHandler struct {
AccessTokenStrategy core.AccessTokenStrategy
RefreshTokenStrategy core.RefreshTokenStrategy
AuthorizeCodeStrategy core.AuthorizeCodeStrategy
// AuthorizeCodeGrantStorage is used to persist session data across requests.
AuthorizeCodeGrantStorage AuthorizeCodeGrantStorage
// AuthCodeLifespan defines the lifetime of an authorize code.
AuthCodeLifespan time.Duration
// AccessTokenLifespan defines the lifetime of an access token.
AccessTokenLifespan time.Duration
}
AuthorizeExplicitGrantTypeHandler 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 (c *AuthorizeExplicitGrantTypeHandler) HandleTokenEndpointRequest(ctx context.Context, r *http.Request, request fosite.AccessRequester) error
HandleTokenEndpointRequest implements * https://tools.ietf.org/html/rfc6749#section-4.1.3 (everything)
func (*AuthorizeExplicitGrantTypeHandler) IssueAuthorizeCode ¶
func (*AuthorizeExplicitGrantTypeHandler) PopulateTokenEndpointResponse ¶
func (c *AuthorizeExplicitGrantTypeHandler) PopulateTokenEndpointResponse(ctx context.Context, req *http.Request, requester fosite.AccessRequester, responder fosite.AccessResponder) error
Click to show internal directories.
Click to hide internal directories.