Skip to content

Commit

Permalink
chore(jans-cedarling): rename the Vec of role from role to roles
Browse files Browse the repository at this point in the history
Signed-off-by: rmarinn <[email protected]>
  • Loading branch information
rmarinn committed Dec 21, 2024
1 parent 36525fa commit 05440f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jans-cedarling/cedarling/src/authz/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,15 @@ 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 {
Some(create_user_entity(
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
Expand All @@ -406,7 +406,7 @@ impl Authz {
userinfo_token: token_entities.userinfo,
user,
resource,
roles: role,
roles,
})
}
}
Expand Down

0 comments on commit 05440f9

Please sign in to comment.