https://github.com/augustogunsch/decap_oauth
https://github.com/augustogunsch/decap_oauth
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/augustogunsch/decap_oauth
- Owner: augustogunsch
- License: mit
- Created: 2023-11-27T20:21:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-28T17:28:32.000Z (over 1 year ago)
- Last Synced: 2024-05-29T14:03:32.587Z (12 months ago)
- Language: Rust
- Homepage: https://crates.io/crates/decap_oauth
- Size: 36.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-decap-cms - decap_oauth - OAuth client implementation in Rust. (OAuth Client)
- awesome-decap-cms - decap_oauth - OAuth client implementation in Rust. (OAuth Clients)
README
External OAuth provider for Decap CMS. The following environment variables must be set for it to
work:```shell
OAUTH_CLIENT_ID=(insert_the_client_id)
OAUTH_SECRET=(insert_the_secret)
OAUTH_ORIGINS=www.example.com,oauth.mysite.com
```Additionaly, when using a host provider other than GitHub, such as Gitlab, the following
environment variables must be set:```shell
OAUTH_PROVIDER=gitlab
OAUTH_HOSTNAME=https://gitlab.com
OAUTH_TOKEN_PATH=/oauth/token
OAUTH_AUTHORIZE_PATH=/oauth/authorize
OAUTH_SCOPES=api
```When using GitHub Enterprise, please set `OAUTH_HOSTNAME` to the proper value.
Documentation available on [docs.rs](https://docs.rs/decap_oauth/latest/decap_oauth/).