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

Method postOAuth2ProviderAppToken

coderd/oauth2.go:148–150  ·  view source on GitHub ↗

@Summary OAuth2 token exchange. @ID oauth2-token-exchange @Produce json @Tags Enterprise @Param client_id formData string false "Client ID, required if grant_type=authorization_code" @Param client_secret formData string false "Client secret, required if grant_type=authorization_code" @Param code for

()

Source from the content-addressed store, hash-verified

146// @Success 200 {object} oauth2.Token
147// @Router /oauth2/tokens [post]
148func (api *API) postOAuth2ProviderAppToken() http.HandlerFunc {
149 return oauth2provider.Tokens(api.Database, api.DeploymentValues.Sessions)
150}
151
152// @Summary Delete OAuth2 application tokens.
153// @ID delete-oauth2-application-tokens

Callers 1

NewFunction · 0.95

Calls 1

TokensFunction · 0.92

Tested by

no test coverage detected