Getting invalid user in rules, while doing auth with SAML (Okta)

I’ve created a private okta integration, following the instruction here.

I am getting an invalid, empty user in the rule. Even when I test the saml connection with rule, the auth0 debug page shows empty user object. Rule throw following error when I try to JSON.stringify(user)

{“errors”:[{“extensions”:{“path”:“$”,“code”:“validation-failed”},“message”:“expecting a value for non-nullable variable: "email"”}]}

I figured it out, we need to do custom user attribute mapping from okta for this to work.

1 Like

Great! Thanks for sharing that with the rest of community!