MCPcopy
hub / github.com/ory/hydra / AuthorizeExplicitGrantHandler

Struct AuthorizeExplicitGrantHandler

fosite/handler/oauth2/flow_authorize_code_auth.go:23–43  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected