Skip to content

Auth0 restricting users #2770

Answered by billimek
michalchecinski asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @michalchecinski , it's been a little while since I originally configured this but I believe this may help.

In my case, on auth0, I leverage the microsoft "Windows Live' 'social' connection, as seen below (previously used the Google "Google / Gmail" social connection too for my Google Workspaces domain, similar setup):

And then in the Auth0 "Auth Pipeline" -> "Rules" section, I have a script that will only allow email addresses belonging to certain domains to pass. You could probably modify the script to only allow certain specific email addresses instead of the entire domain/domains:

function emailDomainWhitelist(user, context, callback) {
  // Access should only be granted to verif…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michalchecinski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants