Skip to content

Commit 3150791

Browse files
fix(oauth): use client_secret_id instead of provider id for encrypted secret lookup
The getIdentityProvider query was using ip.id to retrieve the encrypted OAuth client secret, but secrets are stored under ip.client_secret_id. This caused PROVIDER_NOT_CONFIGURED errors when the IDs didn't match. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 65b0e3e commit 3150791

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphql/server/src/middleware/oauth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async function getIdentityProvider(
132132
ip.display_name,
133133
ip.enabled,
134134
ip.client_id,
135-
"${encryptedSecretsSchema}".get(ip.id, 'oauth_client_secret') as client_secret,
135+
"${encryptedSecretsSchema}".get(ip.client_secret_id, 'oauth_client_secret') as client_secret,
136136
ip.authorization_url,
137137
ip.token_url,
138138
ip.userinfo_url,

0 commit comments

Comments
 (0)