From 05440f9ee71559c7628f43ea937aae2bb5bc91b2 Mon Sep 17 00:00:00 2001 From: rmarinn <34529290+rmarinn@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:33:47 +0800 Subject: [PATCH] chore(jans-cedarling): rename the Vec of role from `role` to `roles` Signed-off-by: rmarinn <34529290+rmarinn@users.noreply.github.com> --- jans-cedarling/cedarling/src/authz/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jans-cedarling/cedarling/src/authz/mod.rs b/jans-cedarling/cedarling/src/authz/mod.rs index b46bb02e0c9..b1382ecaa1e 100644 --- a/jans-cedarling/cedarling/src/authz/mod.rs +++ b/jans-cedarling/cedarling/src/authz/mod.rs @@ -377,7 +377,7 @@ impl Authz { }; // build role entity - let role = create_role_entities(policy_store, tokens)?; + let roles = create_role_entities(policy_store, tokens)?; // build user entity let user = if self.config.authorization.use_user_principal { @@ -385,7 +385,7 @@ impl Authz { auth_conf.mapping_user.as_deref(), policy_store, tokens, - HashSet::from_iter(role.iter().map(|e| e.uid())), + HashSet::from_iter(roles.iter().map(|e| e.uid())), )?) } else { None @@ -406,7 +406,7 @@ impl Authz { userinfo_token: token_entities.userinfo, user, resource, - roles: role, + roles, }) } }