Skip to content

Simple implementation of the GitHub OAuth authentication flow within NiceGui

License

Notifications You must be signed in to change notification settings

simplylu/NiceGitHubLogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

NiceGHLogin

This is just a sample implementation of the GitHub OAuth login flow within NiceGui. I followed this documentation to learn about the flow.

Usage

  1. Create an OAuth app on Github
  2. Copy your CLIENT_ID, CLIENT_SECRET and CALLBACK_URL to the .env.bak file and remove the .bak extension
  3. Generate some SSL Certificates (openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key .pem -days 365)
  4. Start the appliction with python3 app.py

Important

You need to provide SSL certificates using Uvicorn or a Traefik reverse Proxy, as GitHub does not allow insecure callback URLs with HTTP.

About

Simple implementation of the GitHub OAuth authentication flow within NiceGui

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages