Example Web SDK Integration
Django Implementation of HumanID SSO
Developer Console
WebLoginUrl API Call
#YOUR_APP/views.py
def homepage(request):
headers = {'client-id':'CLIENT_ID','client-secret':'CLIENT_SECRET'}
response=requests.post('https://core.human-id.org/v0.0.3/server/users/web-login',headers=headers)
data=response.json()
return render(request,'trial/homepage.html',
{
'data':data
})<!YOUR_APP/templates/homepage.html>
{%block content%}
<div>
<p>{{data}}</p>
<p><a href={{data.data.webLoginUrl}}>{% include 'anonymous-login.svg.html'%}</a></p>
</div>
{%endblock%}Callback URL
Last updated
Was this helpful?