Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove bearer prefix for auth #8949

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

bashleigh
Copy link
Contributor

Pull request checklist

Detail as per issue below (required):

fixes: #

@bashleigh bashleigh marked this pull request as ready for review April 27, 2023 08:27
@@ -17,7 +17,7 @@ export class TokenProvider implements AuthProviderInterface<any> {
async resolve(request: Request): Promise<LoginIdentity> {
try {
const authorization = request.headers?.authorization as string
const claim = await connectSessionVerifyDecodeIdTokenWithPublicKeys(authorization)
const claim = await connectSessionVerifyDecodeIdTokenWithPublicKeys(authorization.replace('Bearer ', ''))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh? Why is Bearer being passed at all for an id token?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bashleigh bashleigh merged commit dfc2a05 into master Apr 27, 2023
@bashleigh bashleigh deleted the fix/remove-auth-bearer-on-request branch April 27, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants