============================================================ 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)
| 259 | // exchanged. Pre-seeding an inactive row isn't a supported flow — |
| 260 | // fosite never does it. |
| 261 | func (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 |