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: Uses token cache when resolving token from request #99

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Mar 8, 2023

So, our FromRequest for EdgeToken (What Actix uses to allow us to say that our handler functions expects an EdgeToken as an argument) didn't use our token cache, which meant that our token validation (getting projects from upstream for multi project tokens) wasn't working. This PR adds another test verifying that tokens with access to the three projects we use for our production servers works against a snapshot of the hosted state.

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LGTM

@chriswk chriswk merged commit 5cd5593 into main Mar 8, 2023
@chriswk chriswk deleted the fix/incorrectTokenCacheUsage branch March 8, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants