MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / CreateAuthorizationCode

Method CreateAuthorizationCode

internal/store/oauth.go:261–263  ·  view source on GitHub ↗

============================================================ Authorization codes (handler/oauth2/storage.go AuthorizeCodeStorage) ============================================================ CreateAuthorizationCode persists a code's session under its signature. The signature is fosite's HMAC of the

(req models.OAuthRequest)

Source from the content-addressed store, hash-verified

259// exchanged. Pre-seeding an inactive row isn't a supported flow —
260// fosite never does it.
261func (s *Store) CreateAuthorizationCode(req models.OAuthRequest) error {
262 return s.insertOAuthRequestRow("oauth_authorization_codes", req)
263}
264
265// GetAuthorizationCode hydrates the code's session. Returns
266// ErrOAuthInvalidatedCode if the row exists but active=false (fosite

Calls 1

insertOAuthRequestRowMethod · 0.95