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

Function OAuth2ProviderApp

coderd/httpmw/oauth2.go:230–236  ·  view source on GitHub ↗

OAuth2ProviderApp returns the OAuth2 app from the ExtractOAuth2ProviderAppParam handler.

(r *http.Request)

Source from the content-addressed store, hash-verified

228
229// OAuth2ProviderApp returns the OAuth2 app from the ExtractOAuth2ProviderAppParam handler.
230func OAuth2ProviderApp(r *http.Request) database.OAuth2ProviderApp {
231 app, ok := r.Context().Value(oauth2ProviderAppParamContextKey{}).(database.OAuth2ProviderApp)
232 if !ok {
233 panic("developer error: oauth2 app param middleware not provided")
234 }
235 return app
236}
237
238// ExtractOAuth2ProviderApp grabs an OAuth2 app from the "app" URL parameter. This
239// middleware requires the API key middleware higher in the call stack for

Callers 11

RevokeTokenFunction · 0.92
RevokeAppFunction · 0.92
GetAppFunction · 0.92
UpdateAppFunction · 0.92
DeleteAppFunction · 0.92
GetAppSecretsFunction · 0.92
CreateAppSecretFunction · 0.92
ShowAuthorizePageFunction · 0.92
ProcessAuthorizeFunction · 0.92
TokensFunction · 0.92

Calls 2

ContextMethod · 0.65
ValueMethod · 0.45

Tested by

no test coverage detected