MCPcopy Index your code
hub / github.com/coder/coder / ExtractOAuth2ProviderApp

Function ExtractOAuth2ProviderApp

coderd/httpmw/oauth2.go:241–243  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

239// middleware requires the API key middleware higher in the call stack for
240// authentication.
241func 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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected