How can this be possible? I am trying to add steam authentication button in my website and get general information: username, steam id.
something like this as example:
from django.shortcuts import render
from django.http return HttpResponse
return render('link.html', response) # link html contains <a> tag which should lead to steam authentication.
if auth = SteamAuth.wasSucessful:
return HttpResponse("Username: " + SteamAuth.Username() + "SteamID: " + SteamAuth.ID())
You can use the
python-social-auth package that has native support for both django and the steam API:
Multiple frameworks are supported:
- Soundcloud OAuth2
- Stackoverflow OAuth2
- Steam OpenId
- Stocktwits OAuth2
- Strava OAuth2
- Stripe OAuth2