← Back to list

[Auth] How to use Zoho as an OIDC for gitea

Gitea and OIDC

Sarvsav Sharma · 2025-10-30 21:42 · 0 claps · 2.5 min read paywalled
#zoho #oidc #gitea #authentication #security
Open on Medium ↗

[Auth] How to use Zoho as an OIDC for gitea

Gitea and OIDC

Using Zoho as an Identity provider, we authenticate user with zoho mail.

Step 1: Create email address in Zoho admin console

Using admin console, we can add users to our organization.

Zoho Mail Admin Console

Step 2: Create a client using zoho api console

Zoho API Console

We have to choose server based app, because gitea is running as a server on a machine.

  • Client Name: <For your reference, eg. gitcloud>
  • Homepage URL: <Where app is running, eg. git.example.com>
  • Authorized Redirect URL: Where the zoho will send the user after authentication (you will get it from app)

After creating this,

Zoho will give client ID and client secret for authentication.

And, in settings, we can use same client to authenticate from all the data center of Zoho across world.

Step 3: Enabling in gitea

  1. Login to your account.

  1. Go to site administration.
  2. Choose Authentication sources under Identity and access.

  1. Add authentication source on top right.
  2. Choose OAuth2 as authentication type.
  3. Authentication Name will decide the Auth Uri for Step2. Give ZohoID. This name will also appear on Login screen, saying Login with ZohoID.
  4. Oauth2 Provider, choose OIDC (Open ID Connect).
  5. Client ID and Client secret is already provided by Zoho, and fill them here.
  6. Open ID Discovery url is also provided by Zoho or all other OIDC providers, and it ends like this .well-known/openid-configuration, so in our case, it would be [https://accounts.zoho.com/.well-known/openid-configuration.](https://accounts.zoho.com/.well-known/openid-configuration.)
  7. Additional scopes will tell us, what information to capture from Zoho, like email, age, phone number, etc. For simplicity, email and name is good. (openid email profile)
  8. Required claim name, is email.

  1. In the bottom, it will also show the url for Oauth2, tat needs to be provided for redirect URI.
  2. Add it as authentication source.

  1. Once saved, it is enabled by default in gitea and appear on login screen.
  2. Next, we need to disable the user registration, so that external users will not logged in.
  3. Login to gitea server using ssh.
  4. Update the config value with below values in etc/gitea/app.ini file.
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = true # This should be enabled
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost

Restart the gitea server, and we are done.

sudo systemctl restart gitea

메타데이터
post_id
ed77efd8a58e
slug
auth-how-to-use-zoho-as-an-oidc-for-gitea-ed77efd8a58e
url
https://medium.com/@sarvsav/auth-how-to-use-zoho-as-an-oidc-for-gitea-ed77efd8a58e
canonical_url
https://medium.com/@sarvsav/auth-how-to-use-zoho-as-an-oidc-for-gitea-ed77efd8a58e
author_url
https://medium.com/@sarvsav
status
ok
fetched_at
2026-06-15 20:49:13