From 8140c5007f556abf36a944758851cbe18d98392f Mon Sep 17 00:00:00 2001 From: James Elliott Date: Sun, 7 Aug 2022 14:56:33 +1000 Subject: [PATCH] docs: fix gitea oidc (#3800) --- .../integration/openid-connect/gitea/index.md | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/docs/content/en/integration/openid-connect/gitea/index.md b/docs/content/en/integration/openid-connect/gitea/index.md index c3b405b9..9aea3fad 100644 --- a/docs/content/en/integration/openid-connect/gitea/index.md +++ b/docs/content/en/integration/openid-connect/gitea/index.md @@ -52,25 +52,23 @@ To configure [Gitea] to utilize Authelia as an [OpenID Connect] Provider: {{< figure src="gitea.png" alt="Gitea" width="300" >}} -#### Gitea App.ini -The following variables should be setup to enable 'auto' user creation - -``` +To configure [Gitea] to perform automatic user creation for the `auth.example.com` domain via [OpenID Connect]: + +1. Edit the following values in the [Gitea] `app.ini`: +```ini [openid] ENABLE_OPENID_SIGNIN = false ENABLE_OPENID_SIGNUP = true -WHITELISTED_URIS = auth.domain.com +WHITELISTED_URIS = auth.example.com [service] DISABLE_REGISTRATION = false ALLOW_ONLY_EXTERNAL_REGISTRATION = true SHOW_REGISTRATION_BUTTON = false ``` -* 'ENABLE_OPENID_SIGNIN' - shows an additional OpenID section on the login page. Setting this to false removes it - this allows all auth to be instigated by Authelia. -* 'ENABLE_OPENID_SIGNUP' - this allows the OIDC user to sign up with Gitea, with the user passed from your Authelia login session. -* 'WHITELISTED_URIS' - this restricts the login/OIDC source to be Authelia -* 'DISABLE_REGISTRATION' - this disables general user (non-OIDC) registration -* 'ALLOW_ONLY_EXTERNAL_REGISTRATION' - this allows registration via OIDC only -* 'SHOW_REGISTRATION_BUTTON' - This hides the sign up button so manual registrations via the home page are not possible + +Take a look at the [See Also](#see-also) section for the cheatsheets corresponding to the sections above for their +descriptions. ### Authelia @@ -92,6 +90,11 @@ will operate with the above example: userinfo_signing_algorithm: none ``` -[Authelia]: https://www.authelia.com +## See Also + +- [Gitea] app.ini [Config Cheat Sheet - OpenID](https://docs.gitea.io/en-us/config-cheat-sheet/#openid-openid) +- [Gitea] app.ini [Config Cheat Sheet - Service](https://docs.gitea.io/en-us/config-cheat-sheet/#service-service) + +- [Authelia]: https://www.authelia.com [Gitea]: https://gitea.io/ [OpenID Connect]: ../../openid-connect/introduction.md