Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit822b677

Browse files
committed
remove client_id check from revoke body
1 parent4c9ccde commit822b677

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

‎coderd/oauth2provider/revoke.go‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,6 @@ func RevokeToken(db database.Store, logger slog.Logger) http.HandlerFunc {
5858
return
5959
}
6060

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-
return
72-
}
73-
7461
// Determine if this is a refresh token (starts with "coder_") or API key
7562
// APIKeys do not have the SecretIdentifier prefix.
7663
constcoderPrefix=SecretIdentifier+"_"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp