Get Log-in button image and put this scripts below into your Web App:
Log-in Button Image
<img src="anonymous-login.svg" alt="Anonymous Login with humanID" height="27"/>
2. Create a Log-in API
When user click the log-in with button, Web App will make request to the App Backend and then page will be redirected to web-login.human-id.org.
To obtain Log-in URL, App Back-end will call API Request Web Log-in Session (See Documentation below). The API call must be done between Host-to-Host in order to protect Server Credentials.
Once App Backend received response that contains Log-in URL, redirect page to given URL to open humanID Web Log-in Page
3. Create a Log-in Callback API
After user successfully Log-in with humanID, page will be redirected to a registered Log-in Callback URL (registered on Developer Console). Callback URL contains Exchange Token, which is a URL Encoded token that will be used to obtain User ID.