The Property Scope Mapping: authentik default OAuth Mapping: OpenID 'email' returns "email_verified" hardcoded as False.
return {
"email": request.user.email,
"email_verified": False
}
Some solutions suggest to manually create a new mapping where we set the property to true and use that custom scope mapping instead, but I would like to have an automated way of users verifying themselves.
When creating a Stage there is a template for "Email Stage" (first screenshot).
How can I have it so that when a user passes the Email Stage, that that user has "email_verified" set to true?
One could say "just leave email_verified to true, they need to pass the email stage anyway". But what if a user is changing their email?
How would I solve this problem?