Hi Naman,
Please follow the below approach:
Setup > Domain Management > My Domain
1. Enable MyDomain.
2. Follow the instructions to set it up and deploy to users.
3. Set “Require login from <mydomain>” to True.
Browse to: Setup > Security Controls > Single Sign-On Settings
4. Set “Identity Provider Login URL” to the URL users should be forced to log in.
5. Set “Entity Id” to the <mydomain> value.
* Note: The above process may take up to 48 hours for domain name propagation.
Thanks