Domain Mapping -Common Template

If you have multiple IDPs and you want a certain set of users to authenticate from one IdP whereas another set of users to authenticate from another IdP, based on their email domains then you can achieve this by using the following steps:- Our domain mapping feature

  • We have provided a Domain Mapping field under each IdP where admins can enter the domain eg. demo.com , example.com as shown in the screenshot below.
  • For your reference , Okta and OneLogin are being used as two different IDPs and WordPress is being used as SP. Follow the guides to set up Okta, OneLogin and WordPress at your end.


  • Once the setup is complete you can login through your Wordpress site.
  • Lets Say in OKTA IDP Domain field we enter example.com and in Onelogin IDP Domain field we enter demo.com
  • So a user logging in with the example.com domain will be redirected to Okta IDP.
  • User logging in with email address having demo.com domain will be redirected to OneLogin IDP.
  • Once the user will authenticate itself through respective IDPs, it will be redirected back to Wordpress site.