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:src/infrastructure/auth.rs (line 207)
Code
("grant_type", "authorization_code"),
Remediation
Add PKCE support by generating a code_verifier, creating a code_challenge from it, and including both in the authorization request. The code_verifier should be stored securely and used when exchanging the authorization code for an access token.
Fingerprint:29d02c2b928ed957c10752516acb9af3056476965583abcd4ab0f5427b1a8416 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:** `src/infrastructure/auth.rs` (line 207)
### Code
```
("grant_type", "authorization_code"),
```
### Remediation
Add PKCE support by generating a code_verifier, creating a code_challenge from it, and including both in the authorization request. The code_verifier should be stored securely and used when exchanging the authorization code for an access token.
---
*Fingerprint:* `29d02c2b928ed957c10752516acb9af3056476965583abcd4ab0f5427b1a8416`
*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:
src/infrastructure/auth.rs(line 207)Code
Remediation
Add PKCE support by generating a code_verifier, creating a code_challenge from it, and including both in the authorization request. The code_verifier should be stored securely and used when exchanging the authorization code for an access token.
Fingerprint:
29d02c2b928ed957c10752516acb9af3056476965583abcd4ab0f5427b1a8416Generated by compliance-scanner
Labels: severity:medium, scanner:oauth-patterns, compliance-scanner