While I can do mapping for individual users from email to local user, I am interested in doing a wildcard mapping for all users for example some regex or * like below:
c.AzureAdOAuthenticator.username_map = {
‘*@xyz.com’: ‘*’
}
The expected result is that any username like fname.lname@xyz.com is mapped to fname.lname without having to add each user one by one in the username_map. Thx!
But I am not very clear why the LocalAzureAdOAuthenticator works but when I tried to custom subclass AzureAdOAuthenticator it didnt work. Or why we specify c.AzureAdOAuthenticator.normalize_username = True instead of the custom c.myazureadoauthenticator.normalize_username = True .
normalize_username is a function not a variable, and you’ve already overridden it in your custom class. Is there a doc somewhere that told you to set it to True?
No I removed the line c.AzureAdOAuthenticator.normalize_username = True
and it still works with the custom override so its not needed. Not sure where I saw it earlier. But why is the Local one LocalAzureAdOAuthenticator needed to make it work and what is the difference with AzureAdOAuthenticator .