ExtractOAuth2ProviderApp grabs an OAuth2 app from the "app" URL parameter. This middleware requires the API key middleware higher in the call stack for authentication.
(db database.Store)
| 239 | // middleware requires the API key middleware higher in the call stack for |
| 240 | // authentication. |
| 241 | func ExtractOAuth2ProviderApp(db database.Store) func(http.Handler) http.Handler { |
| 242 | return extractOAuth2ProviderAppBase(db, &codersdkErrorWriter{}) |
| 243 | } |
| 244 | |
| 245 | // ExtractOAuth2ProviderAppWithOAuth2Errors is the same as ExtractOAuth2ProviderApp but |
| 246 | // returns OAuth2-compliant errors instead of generic API errors. This should be used |
nothing calls this directly
no test coverage detected