-
Notifications
You must be signed in to change notification settings - Fork 76
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
refactor(jans-cedarling): update AuthZ interface to use tokens
for all JWTs sent as input
#10521
Open
rmarinn
wants to merge
9
commits into
main
Choose a base branch
from
jans-cedarling-10437
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+335
−255
Open
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3c989b3
refactor(jans-cedarling): update AuthZ interface to use tokens for al…
rmarinn be84701
docs(jans-cedarling): update docs for AuthZ interface
rmarinn 7df9d66
fix(jans-cedarling): incorrect error message
rmarinn 86ff917
fix(jans-cedarling): remove workload entity creation using userinfo_t…
rmarinn cd42f1d
fix(jans-cedarling): broken tests
rmarinn 65988e8
fix(jans-cedarling): update .pyi file to match with rust define structs
rmarinn c79c574
chore: remove static version
SafinWasi b6ae5e7
chore(jans-cedarling): update incorrect python docstring
rmarinn c6576e6
chore(jans-cedarling): update PYTHON_TYPES.md
rmarinn 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 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 |
---|---|---|
|
@@ -56,24 +56,25 @@ this is a sample request from a hypothetical application: | |
|
||
```js | ||
input = { | ||
"access_token": "eyJhbGc....", | ||
"id_token": "eyJjbGc...", | ||
"userinfo_token": "eyJjbGc...", | ||
"tx_token": "eyJjbGc...", | ||
"action": "View", | ||
"resource": { | ||
"id": "ticket-10101", | ||
"type" : "Ticket", | ||
"owner": "[email protected]", | ||
"org_id": "Acme" | ||
}, | ||
"context": { | ||
"ip_address": "54.9.21.201", | ||
"network_type": "VPN", | ||
"user_agent": "Chrome 125.0.6422.77 (Official Build) (arm64)", | ||
"time": "1719266610.98636", | ||
} | ||
} | ||
"tokens": { | ||
"access_token": "eyJhbGc....", | ||
"id_token": "eyJjbGc...", | ||
"userinfo_token": "eyJjbGc...", | ||
}, | ||
"action": "View", | ||
"resource": { | ||
"id": "ticket-10101", | ||
"type" : "Ticket", | ||
"owner": "[email protected]", | ||
"org_id": "Acme" | ||
}, | ||
"context": { | ||
"ip_address": "54.9.21.201", | ||
"network_type": "VPN", | ||
"user_agent": "Chrome 125.0.6422.77 (Official Build) (arm64)", | ||
"time": "1719266610.98636", | ||
} | ||
} | ||
|
||
decision_result = authz(input) | ||
``` | ||
|
This file contains 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.
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.
Is this a python dictionary? From
cedarling_python.pyi
line 143 I see Tokens is a class.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.
it's a class. let me update the docs again
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.
should be fixed now