mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: move oauth2 routes (#12240)
* fix: move oauth2 routes From /login/oauth2/* to /oauth2/*. /login/oauth2 causes /login to no longer get served by the frontend, even if nothing is actually served on /login itself. * Add forgotten comment on delete
This commit is contained in:
@ -213,7 +213,7 @@ func (e OAuth2ProviderResponseType) Valid() bool {
|
||||
// RevokeOAuth2ProviderApp completely revokes an app's access for the
|
||||
// authenticated user.
|
||||
func (c *Client) RevokeOAuth2ProviderApp(ctx context.Context, appID uuid.UUID) error {
|
||||
res, err := c.Request(ctx, http.MethodDelete, "/login/oauth2/tokens", nil, func(r *http.Request) {
|
||||
res, err := c.Request(ctx, http.MethodDelete, "/oauth2/tokens", nil, func(r *http.Request) {
|
||||
q := r.URL.Query()
|
||||
q.Set("client_id", appID.String())
|
||||
r.URL.RawQuery = q.Encode()
|
||||
|
Reference in New Issue
Block a user