Skip to content

Commit

Permalink
fix(jans-cedarling): Changed Request format
Browse files Browse the repository at this point in the history
Signed-off-by: Olevacho <[email protected]>
  • Loading branch information
Olevacho committed Oct 30, 2024
1 parent f221923 commit fb50bff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jans-cedarling/bindings/cedarling_ext_php_rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ pub fn cedarling_authorize_test(acc_tok_str: &str,payload_str: &str) -> String {
return format!("Hello, {}! (Failed to initialize Cedarling)", payload_str);
}
};

let access_token = acc_tok_str;
let id_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY3IiOiJiYXNpYyIsImFtciI6IjEwIiwiYXVkIjoiNWI0NDg3YzQtOGRiMS00MDlkLWE2NTMtZjkwN2I4MDk0MDM5IiwiZXhwIjoxNzI0ODM1ODU5LCJpYXQiOjE3MjQ4MzIyNTksInN1YiI6ImJvRzhkZmM1TUtUbjM3bzdnc2RDZXlxTDhMcFdRdGdvTzQxbTFLWndkcTAiLCJpc3MiOiJodHRwczovL2FkbWluLXVpLXRlc3QuZ2x1dS5vcmciLCJqdGkiOiJzazNUNDBOWVNZdWs1c2FIWk5wa1p3Iiwibm9uY2UiOiJjMzg3MmFmOS1hMGY1LTRjM2YtYTFhZi1mOWQwZTg4NDZlODEiLCJzaWQiOiI2YTdmZTUwYS1kODEwLTQ1NGQtYmU1ZC01NDlkMjk1OTVhMDkiLCJqYW5zT3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCIsImNfaGFzaCI6InBHb0s2WV9SS2NXSGtVZWNNOXV3NlEiLCJhdXRoX3RpbWUiOjE3MjQ4MzA3NDYsImdyYW50IjoiYXV0aG9yaXphdGlvbl9jb2RlIiwic3RhdHVzIjp7InN0YXR1c19saXN0Ijp7ImlkeCI6MjAyLCJ1cmkiOiJodHRwczovL2FkbWluLXVpLXRlc3QuZ2x1dS5vcmcvamFucy1hdXRoL3Jlc3R2MS9zdGF0dXNfbGlzdCJ9fX0.8BwLLGkFpWGx8wGpvVmNk_Ao8nZrP_WT-zoo-MY4zqY".to_string();

let access_token = (*acc_tok_str).to_string();

let result = cedarling.authorize(Request {
access_token,
id_token,
action: "Jans::Action::\"Update\"".to_string(),
context: serde_json::json!({}),
resource: ResourceData {
Expand Down

0 comments on commit fb50bff

Please sign in to comment.