Documentation ¶
Index ¶
- type ResourceOwnerPasswordCredentialsGrantHandler
- func (c *ResourceOwnerPasswordCredentialsGrantHandler) HandleTokenEndpointRequest(ctx context.Context, req *http.Request, requester fosite.AccessRequester, ...) error
- func (c *ResourceOwnerPasswordCredentialsGrantHandler) ValidateTokenEndpointRequest(_ context.Context, req *http.Request, request fosite.AccessRequester, ...) error
- type ResourceOwnerPasswordCredentialsGrantStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceOwnerPasswordCredentialsGrantHandler ¶
type ResourceOwnerPasswordCredentialsGrantHandler 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 ResourceOwnerPasswordCredentialsGrantStorage // AccessTokenLifespan defines the lifetime of an access token. AccessTokenLifespan time.Duration }
func (*ResourceOwnerPasswordCredentialsGrantHandler) HandleTokenEndpointRequest ¶
func (c *ResourceOwnerPasswordCredentialsGrantHandler) HandleTokenEndpointRequest(ctx context.Context, req *http.Request, requester fosite.AccessRequester, responder fosite.AccessResponder, session interface{}) error
HandleTokenEndpointRequest implements https://tools.ietf.org/html/rfc6749#section-4.3.3
func (*ResourceOwnerPasswordCredentialsGrantHandler) ValidateTokenEndpointRequest ¶
func (c *ResourceOwnerPasswordCredentialsGrantHandler) ValidateTokenEndpointRequest(_ context.Context, req *http.Request, request fosite.AccessRequester, session interface{}) error
ValidateTokenEndpointRequest implements https://tools.ietf.org/html/rfc6749#section-4.3.2
type ResourceOwnerPasswordCredentialsGrantStorage ¶
type ResourceOwnerPasswordCredentialsGrantStorage interface { DoCredentialsAuthenticate(name string, secret string) error core.AccessTokenStorage }
Click to show internal directories.
Click to hide internal directories.