You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// allow email claim only when email_verified is present and true
633
+
ClaimMappings: api.ClaimMappings{
634
+
Username: api.PrefixedClaimOrExpression{
635
+
Expression: `{claims.?email: "panda"}`,
636
+
},
637
+
},
638
+
},
639
+
},
640
+
},
641
+
want: `[jwt[0].claimValidationRules[0].expression: Invalid value: "claims.?email_verified.orValue(true)": must evaluate to bool, jwt[0].claimMappings.username.expression: Invalid value: "{claims.?email: \"panda\"}": claims.email_verified must be used in claimMappings.username.expression or claimMappings.extra[*].valueExpression or claimValidationRules[*].expression when claims.email is used in claimMappings.username.expression]`,
0 commit comments