Hi, we have successfully setup a social login, usi...
# ask-a-descoper
b
Hi, we have successfully setup a social login, using Microsoft. However, we want users (staff) to have immediate access to our app, without the need to setup an account. Is it possible to whitelist a domain?
s
you mean to skip AuthN altogether for these users?
or have them use a diff type of AuthN ?
b
Anyone with an @insertcompanyname.com email address should be pre-approved and able to login - so long as they are logged into the company Office 365 account
For context, it's a staff portal and should only be accessed by staff members. We just want to remove the need for signup - as by having a staff email address they have already been approved
s
by using sign up or in action, it will be seamless to end user
you can use condition of email domain, to tweak the experience for these users
in general, for staff (workforce) , doing a SAML login (IdP based) is more secure
another option, you can invite these users from use page
and make sure to mark the merge button on, so it will merge oauth and user based on emails (only for your staff)
does that make sense ? You want a call to go over this ?
b
This is great, Meir. Thanks so much. We'll give this a go, and might take you up on the offer of a call if we run into any issues 👍
s
👍
just 1 caveat I forgot to mention on microsoft merge part Many times MSFT don't verify the email on their side, in that case the the merge won't work
b
It seems we're caught in a loop. Is our flow correct?
s
ok, so 2 changes I think you need to do to get to flow you want: 1. In the PEI condition, the
If PEI Domain
should lead to end step (because this is the case of internal user/staff) , the
else
should go to the
Is new user
step, to check if account creation is needed 2. in the PEI condition use
user.emailDomain
, that will give you the user created email (side not , you might need to check it is also verified)
b
This is great, thanks. Will update this as per your recommendations 👍