Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (20 loc) · 856 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 856 Bytes

Actix web OAuth2 examples

This repo contains examples for using OAuth2 authentication in an Actix Web application.

Current versions:

Running the examples

Create credentials with origin URL http://127.0.0.1:5000 and redirect URL http://127.0.0.1:5000/auth

OAuth2 login with Google

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/

OAuth2 login with Gitlab

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/