This repo contains examples for using OAuth2 authentication in an Actix Web application.
Current versions:
- Actix Web 2.0
- OAuth2 3.0
Create credentials with origin URL http://127.0.0.1:5000 and redirect URL http://127.0.0.1:5000/auth
Create credentials at https://console.developers.google.com/apis/credentials
GOOGLE_CLIENT_ID=xxx GOOGLE_CLIENT_SECRET=yyy cargo run --bin google
x-www-browser http://127.0.0.1:5000/
Create credentials at https://gitlab.example.com/admin/applications
GITLAB_SERVER=gitlab.example.com GITLAB_CLIENT_ID=xxx GITLAB_CLIENT_SECRET=yyy cargo run --bin gitlab
x-www-browser http://127.0.0.1:5000/