Our company has a site with authorization ability. Everyone in company has his own zoho account, so I decided to make authorization on site through zoho.
Now I found this solution (very bad, but for example) using
ZohoCRM API:
Then I call https://www.zohoapis.com/crm/v2/users?type=CurrentUser to get array of users, where first user is he who is trying to log into my site, so I get his email, verify it is like <username>@mysite.com and authorize user on my site with his username.
This works great, but not for those who doesn't work with ZohoCRM, the just get error on the third step, becouse the havn't any access to ZohoCRM.
Can anyone help me to make the same steps that will work safity for everyone who has zoho account?