
ByronE.92639 (APNIC Pty Ltd) asked a question.
I tried to use 'Arrays.contains(session.amr, "mfa") ? "MFA" : "No MFA"' as a value for a custom claim, however it always evaluates to "No MFA". Is "session.amr" populated when an ID token claim is evaluated?

Hello @ByronE.92639 (APNIC Pty Ltd)
Thanks for posting.
Session properties allow you to configure Okta to pass Dynamic Authentication Context to SAML apps through the assertion using custom SAML attributes. The App can then use that information to limit access to certain App-specific behaviors and calculate the risk profile for the signed-in user.
https://developer.okta.com/docs/reference/okta-expression-language/#string-functions
Additional Assertion examples:
https://help.okta.com/en/prod/Content/Topics/Apps/pass-authN-context.htm
AMR object
https://developer.okta.com/docs/reference/api/sessions/#amr-object
For more specific details applied to your specific use case feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, this is a place for the Okta developer community to interact.
Let us know if this helps you.
Daniela Chavarria.
Okta Inc.