Skip to content
Snippets Groups Projects
Unverified Commit 36da6e2b authored by Oliver's avatar Oliver Committed by GitHub
Browse files

Add Gitea to auth config docs (#510)


* add gitea to auth config docs

* PR feedback

Co-authored-by: default avatarJoel Speed <Joel.speed@hotmail.co.uk>
parent f7c050e7
Branches
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ Valid providers are : ...@@ -24,6 +24,7 @@ Valid providers are :
- [Nextcloud](#nextcloud-provider) - [Nextcloud](#nextcloud-provider)
- [DigitalOcean](#digitalocean-auth-provider) - [DigitalOcean](#digitalocean-auth-provider)
- [Bitbucket](#bitbucket-auth-provider) - [Bitbucket](#bitbucket-auth-provider)
- [Gitea](#gitea-auth-provider)
The provider can be selected using the `provider` configuration value. The provider can be selected using the `provider` configuration value.
...@@ -397,6 +398,25 @@ To use the provider, pass the following options: ...@@ -397,6 +398,25 @@ To use the provider, pass the following options:
The default configuration allows everyone with Bitbucket account to authenticate. To restrict the access to the team members use additional configuration option: `--bitbucket-team=<Team name>`. To restrict the access to only these users who has access to one selected repository use `--bitbucket-repository=<Repository name>`. The default configuration allows everyone with Bitbucket account to authenticate. To restrict the access to the team members use additional configuration option: `--bitbucket-team=<Team name>`. To restrict the access to only these users who has access to one selected repository use `--bitbucket-repository=<Repository name>`.
### Gitea Auth Provider
1. Create a new application: `https://< your gitea host >/user/settings/applications`
2. Under `Redirect URI` enter the correct URL i.e. `https://<proxied host>/oauth2/callback`
3. Note the Client ID and Client Secret.
4. Pass the following options to the proxy:
```
--provider="github"
--redirect-url="https://<proxied host>/oauth2/callback"
--provider-display-name="Gitea"
--client-id="< client_id as generated by Gitea >"
--client-secret="< client_secret as generated by Gitea >"
--login-url="https://< your gitea host >/login/oauth/authorize"
--redeem-url="https://< your gitea host >/login/oauth/access_token"
--validate-url="https://< your gitea host >/api/v1"
```
## Email Authentication ## Email Authentication
To authorize by email domain use `--email-domain=yourcompany.com`. To authorize individual email addresses use `--authenticated-emails-file=/path/to/file` with one email per line. To authorize all email addresses use `--email-domain=*`. To authorize by email domain use `--email-domain=yourcompany.com`. To authorize individual email addresses use `--authenticated-emails-file=/path/to/file` with one email per line. To authorize all email addresses use `--email-domain=*`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment