Skip to content

auth2/auth2_python_django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth2_python_django

Auth2 sample project for python and django is provided in the hope that it'll be useful to create your own code.

Here is the demo of the sample on youtube-

Auth2 Sample Demo

Before you can use the code please visit http://auth2.com and create an account and then from developer page create an application. Then you can use the application key/secret pair with this sample.

Running the sample

Download the code and change following 4 lines of code with appropriate values. You can remove the error raising part. It is just to remind you about the required change. AUTH2_API_KEY = "your api key here"

AUTH2_API_SECRET = "your api secret here"

if AUTH2_API_KEY == "your api key here": raise ValueError("You forgot to set your API Key")

Then sync the db from the project directory (manage.py syncdb) nad run the server and test your site.

Please note that you need two phones around to test the sample. The phone you use for your application can not be used to call the API. This is becasue the application phone will be sent as caller ID who is receiving. You can not call yourself.

About

auth2 sample project for python and django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages