null
Less than 1 minute
Syntax
(*null)${...}
Examples
(*null)${JWT.elevated_access}
- converts JWT token's claimelevated_access
to null if it has an empty string or does not exist
Definition
Treat the provided value as null
if it is an empty string. Otherwise, the value does not convert to null even if it is a boolean false
, integer 0
, or an empty array.
This policy provides extra permissions to the present user if the JWT token used for authentication includes the elevated_access
non-empty property.
{
"Statement": {
"Effect": "allow",
"Resource": "Capability:super_admin",
"Condition": {
"NotEquals": {
"(*null)${JWT.elevated_access}": null
}
}
}
}