-
Notifications
You must be signed in to change notification settings - Fork 333
WPB-6099 Bump the version of rusty-jwt-tools in wire server #3802
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
Merged
battermann
merged 7 commits into
develop
from
WPB-6099-bump-the-version-of-rusty-jwt-tools-in-wire-server
Jan 15, 2024
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7b73f98
updated rusty-jwt-tools to v0.8.0
battermann d624fd7
adapt create access token handler and tests
battermann 82f4edb
changelog
battermann 4ecd5da
improve jwt-tools unit test
battermann 017e3e3
linter
battermann bc9a619
Merge remote-tracking branch 'origin/develop' into WPB-6099-bump-the-…
battermann 2dea4ca
adressing review comments
battermann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| Feature enforceFileDownloadLocation lockstatus can be set with basic auth on staging | ||
| Version of rusty-jwt-tools bumped to v0.8.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Feature enforceFileDownloadLocation lockstatus can be set with basic auth on staging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,10 @@ data JwtTools m a where | |
| Proof -> | ||
| -- | The qualified client ID associated with the currently logged on user | ||
| ClientIdentity -> | ||
| -- | The user's handle | ||
| Text -> | ||
| -- | The user's team ID | ||
| TeamId -> | ||
| -- | The most recent DPoP nonce provided by the backend to the current client | ||
| Nonce -> | ||
| -- | The HTTPS URI on the backend for the DPoP auth token endpoint | ||
|
|
@@ -46,14 +50,16 @@ makeSem ''JwtTools | |
|
|
||
| interpretJwtTools :: Member (Embed IO) r => Sem (JwtTools ': r) a -> Sem r a | ||
| interpretJwtTools = interpret $ \case | ||
| GenerateDPoPAccessToken pr ci n uri method skew ex now pem -> | ||
| GenerateDPoPAccessToken pr ci h t n uri method skew ex now pem -> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: good opportunity to use readable names for this, what do you think? |
||
| mapLeft RustError | ||
| <$> runExceptT | ||
| ( DPoPAccessToken | ||
| <$> Jwt.generateDpopToken | ||
| (Jwt.Proof (toByteString' pr)) | ||
| (Jwt.UserId (toByteString' (ciUser ci))) | ||
| (Jwt.ClientId (clientToWord64 (ciClient ci))) | ||
| (Jwt.Handle (toByteString' h)) | ||
| (Jwt.TeamId (toByteString' t)) | ||
| (Jwt.Domain (toByteString' (ciDomain ci))) | ||
| (Jwt.Nonce (toByteString' n)) | ||
| (Jwt.Uri (toByteString' uri)) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we had a Handle type.