We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4c9ccde commit822b677Copy full SHA for 822b677
coderd/oauth2provider/revoke.go
@@ -58,19 +58,6 @@ func RevokeToken(db database.Store, logger slog.Logger) http.HandlerFunc {
58
return
59
}
60
61
-// Extract client_id parameter - required for ownership verification
62
-clientID:=r.Form.Get("client_id")
63
-ifclientID=="" {
64
-httpapi.WriteOAuth2Error(ctx,rw,http.StatusBadRequest,"invalid_request","Missing client_id parameter")
65
-return
66
-}
67
-
68
-// Verify the extracted app matches the client_id parameter
69
-ifapp.ID.String()!=clientID {
70
-httpapi.WriteOAuth2Error(ctx,rw,http.StatusBadRequest,"invalid_client","Invalid client_id")
71
72
73
74
// Determine if this is a refresh token (starts with "coder_") or API key
75
// APIKeys do not have the SecretIdentifier prefix.
76
constcoderPrefix=SecretIdentifier+"_"