decap_oauth

Crates.iodecap_oauth
lib.rsdecap_oauth
version0.0.2
sourcesrc
created_at2023-11-28 11:26:03.758033
updated_at2023-11-28 17:29:27.671565
descriptionOAuth server for Decap CMS for GitHub.
homepage
repositoryhttps://github.com/augustogunsch/decap_oauth
max_upload_size
id1051882
size54,218
Augusto Gunsch (augustogunsch)

documentation

README

External OAuth provider for Decap CMS. The following environment variables must be set for it to work:

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:

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.

Commit count: 15

cargo fmt