Auth evaluate fix (#2274)

* fix incorrect empty state

* fix incorrect empty state
This commit is contained in:
Jenny 2022-03-18 09:28:31 -04:00 committed by GitHub
parent f71cbf171a
commit 8d86d380ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,9 @@ export const AuthorizationEvaluate = ({ client }: Props) => {
roleIds: formValues.roleIds ?? [], roleIds: formValues.roleIds ?? [],
clientId: formValues.client.id!, clientId: formValues.client.id!,
userId: formValues.user.id!, userId: formValues.user.id!,
resources: resources.filter((resource) => keys.includes(resource.name!)), resources: formValues.resources.filter((resource) =>
keys.includes(resource.name!)
),
entitlements: false, entitlements: false,
context: { context: {
attributes: Object.fromEntries( attributes: Object.fromEntries(