-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(jans-cedarling): update AuthZ interface to use
tokens
for …
…all JWTs sent as input (#10521) * refactor(jans-cedarling): update AuthZ interface to use tokens for all JWTs sent as input Signed-off-by: rmarinn <[email protected]> * docs(jans-cedarling): update docs for AuthZ interface Signed-off-by: rmarinn <[email protected]> * fix(jans-cedarling): incorrect error message Signed-off-by: rmarinn <[email protected]> * fix(jans-cedarling): remove workload entity creation using userinfo_token Signed-off-by: rmarinn <[email protected]> * fix(jans-cedarling): broken tests - fix the broken tests due to removing the creation of workload entity using the userinfo token Signed-off-by: rmarinn <[email protected]> * fix(jans-cedarling): update .pyi file to match with rust define structs Signed-off-by: rmarinn <[email protected]> * chore: remove static version Signed-off-by: SafinWasi <[email protected]> * chore(jans-cedarling): update incorrect python docstring Signed-off-by: rmarinn <[email protected]> * chore(jans-cedarling): update PYTHON_TYPES.md Signed-off-by: rmarinn <[email protected]> --------- Signed-off-by: rmarinn <[email protected]> Signed-off-by: SafinWasi <[email protected]> Co-authored-by: SafinWasi <[email protected]>
- Loading branch information
Showing
21 changed files
with
335 additions
and
255 deletions.
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
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.