MCPcopy Create free account
hub / github.com/ory/fosite / AuthorizeExplicitGrantHandler

Struct AuthorizeExplicitGrantHandler

handler/oauth2/flow_authorize_code_auth.go:22–39  ·  view source on GitHub ↗

AuthorizeExplicitGrantHandler 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

Source from the content-addressed store, hash-verified

20// AuthorizeExplicitGrantHandler is a response handler for the Authorize Code grant using the explicit grant type
21// as defined in https://tools.ietf.org/html/rfc6749#section-4.1
22type AuthorizeExplicitGrantHandler struct {
23 AccessTokenStrategy AccessTokenStrategy
24 RefreshTokenStrategy RefreshTokenStrategy
25 AuthorizeCodeStrategy AuthorizeCodeStrategy
26 CoreStorage CoreStorage
27 TokenRevocationStorage TokenRevocationStorage
28 Config interface {
29 fosite.AuthorizeCodeLifespanProvider
30 fosite.AccessTokenLifespanProvider
31 fosite.RefreshTokenLifespanProvider
32 fosite.ScopeStrategyProvider
33 fosite.AudienceStrategyProvider
34 fosite.RedirectSecureCheckerProvider
35 fosite.RefreshTokenScopesProvider
36 fosite.OmitRedirectScopeParamProvider
37 fosite.SanitationAllowedProvider
38 }
39}
40
41func (c *AuthorizeExplicitGrantHandler) secureChecker(ctx context.Context) func(context.Context, *url.URL) bool {
42 if c.Config.GetRedirectSecureChecker(ctx) == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected