@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
()
| 146 | // @Success 200 {object} oauth2.Token |
| 147 | // @Router /oauth2/tokens [post] |
| 148 | func (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 |