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 ADFS token caching #459

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Fix ADFS token caching #459

merged 1 commit into from
Oct 24, 2023

Conversation

chlowell
Copy link
Collaborator

@chlowell chlowell commented Oct 6, 2023

#451 assumed "Bearer" is always the token_type of bearer tokens. It turns out some hosts return "bearer" instead, so that assumption broke token caching in some cases. I went with the easiest solution here--compare token types case-insensitively--but if that isn't safe in general I suppose we'll have to special-case [Bb]earer.

@chlowell chlowell added the bug Something isn't working label Oct 6, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 6, 2023

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

@chlowell
Copy link
Collaborator Author

chlowell commented Oct 6, 2023

@bgavril integration tests fail due to an invalid value of LAB_APP_CLIENT_SECRET (one of this repo's Actions secrets). The debug logs imply value is non-empty so I guess the secret has expired.

@chlowell chlowell requested a review from bgavrilMS October 6, 2023 23:29
@bgavrilMS
Copy link
Member

I'm going to merge this, as the failing test is not relevant for this fix.

@bgavrilMS bgavrilMS merged commit 22d8300 into main Oct 24, 2023
7 of 9 checks passed
@chlowell chlowell deleted the chlowell/bearer branch October 24, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants