Add PKCE support by implementing code_challenge and code_verifier parameters in the OAuth flow. Modify the clientMetadata to include PKCE requirements and ensure the authorization code exchange includes proper challenge validation.
Fingerprint:7301979b0eeb613943678c3b0dddccdc50c10e7bf454740617b2685ae3e95091 Generated by compliance-scanner
## medium Finding
**Scanner:** oauth-patterns
**Severity:** medium
**Rule:** oauth-missing-pkce
### Description
Authorization code flow should use PKCE (code_challenge/code_verifier) for public clients.
### Location
**File:** `librechat/openidStrategy.js` (line 685)
### Code
```
clientMetadata.grant_types = ['authorization_code'];
```
### Remediation
Add PKCE support by implementing code_challenge and code_verifier parameters in the OAuth flow. Modify the clientMetadata to include PKCE requirements and ensure the authorization code exchange includes proper challenge validation.
---
*Fingerprint:* `7301979b0eeb613943678c3b0dddccdc50c10e7bf454740617b2685ae3e95091`
*Generated by compliance-scanner*
**Labels:** severity:medium, scanner:oauth-patterns, compliance-scanner
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
medium Finding
Scanner: oauth-patterns
Severity: medium
Rule: oauth-missing-pkce
Description
Authorization code flow should use PKCE (code_challenge/code_verifier) for public clients.
Location
File:
librechat/openidStrategy.js(line 685)Code
Remediation
Add PKCE support by implementing code_challenge and code_verifier parameters in the OAuth flow. Modify the clientMetadata to include PKCE requirements and ensure the authorization code exchange includes proper challenge validation.
Fingerprint:
7301979b0eeb613943678c3b0dddccdc50c10e7bf454740617b2685ae3e95091Generated by compliance-scanner
Labels: severity:medium, scanner:oauth-patterns, compliance-scanner