Django Authentication on GitHub Social Network

I am new to Python and Django and trying to get a social out ( https://github.com/omab/django-social-auth ). I would like to connect using Github, but I have not had much success, and the above example is a bit overwhelming for someone to get started. Are there any recent tutorials that explain how to use the latest version of social outs to set up GitHub authentication for beginners?

+4
source share
1 answer

You have read the documentation provided here

After installing the application, you need to do a bunch of configuration, including specifying

You can also familiarize yourself with the OAuth protocol and everything you need and how to get them.

If you only need access to the specific github API, I would advise you to take a look at PyGithub

Authentication is as simple as doing g = Github( token ) , where is the token from oauth.

Reading repositories is as follows

 for repo in g.get_user().get_repos(): print repo.name repo.edit( has_wiki = False ) 

Related question: The most suitable python library for Github API v3

+8
source

Source: https://habr.com/ru/post/1433683/


All Articles