Skip to content

πŸ” A simple Flask app that performs authentication using OAuth.

Notifications You must be signed in to change notification settings

Paulinakhew/oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

oauth

The PHP script is from here.

General Setup

Go to https://github.com/settings/developers, create a new OAuth App, and put your client ID and client secret in an .env file.

Contents of your env file should be:

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

Setup for PHP app

Run the index.php file

php -S localhost:8000

Setup for Python app

Install pip requirements

pip3 install -r requirements.txt

Run the index.py file

python3 index.py 

Final step

View http://localhost:8000/ in your browser!

About

πŸ” A simple Flask app that performs authentication using OAuth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published