OAuth2ProviderAppSecret returns the OAuth2 app secret from the ExtractOAuth2ProviderAppSecretParam handler.
(r *http.Request)
| 370 | // OAuth2ProviderAppSecret returns the OAuth2 app secret from the |
| 371 | // ExtractOAuth2ProviderAppSecretParam handler. |
| 372 | func OAuth2ProviderAppSecret(r *http.Request) database.OAuth2ProviderAppSecret { |
| 373 | app, ok := r.Context().Value(oauth2ProviderAppSecretParamContextKey{}).(database.OAuth2ProviderAppSecret) |
| 374 | if !ok { |
| 375 | panic("developer error: oauth2 app secret param middleware not provided") |
| 376 | } |
| 377 | return app |
| 378 | } |
| 379 | |
| 380 | // ExtractOAuth2ProviderAppSecret grabs an OAuth2 app secret from the "app" and |
| 381 | // "secret" URL parameters. This middleware requires the ExtractOAuth2ProviderApp |
no test coverage detected