<h1>Setup Codeberg as custom Oauth2 provider in Nexcloud</h1>
</header>
<p>I couldn’t find any info about it via search engines, so I decided to put information here. <br>
What is helped - <ahref="https://forgejo.codeberg.page/docs/latest/user/oauth2-provider/">https://forgejo.codeberg.page/docs/latest/user/oauth2-provider/</a></p>
<p><code>1.</code><ahref="https://codeberg.org/user/settings/applications">Create app in Codeberg</a> and copy Client ID and Client secret somewhere. <br>
<code>2.</code> Go to your Nextcloud Admin settings,<code>Social Login</code> section, and create Custom Oauth2 provider.</p>
<p><code>3.</code> Tick <code>Allow users to attach/connect their social logins</code> box and click <code>Save</code> in the bottom of page. <br>
<code>4.</code> Go in Incognito/Private window of your browser, go to your Nextcloud login page and copy path of Codeberg provider - Right click, copy link, save somewhere. <br>
Must look like this - <code>https://cloud.example.org(/index.php)/apps/sociallogin/custom_oauth2/Codeberg</code><br>
<code>5.</code> Go back to your created earlier <ahref="https://codeberg.org/user/settings/applications">Codeberg application</a>, click <code>Edit</code> button and paste link from step 4 into <code>Redirection URI</code> section, click <code>Save</code>.</p>
<p>And you done! Try connect your Codeberg account to Nextcloud account from user settings <code>Social Login</code> section, it must work. In theory, it’s also appliable to <code>Gitea</code>, because <ahref="https://forgejo.org">Forgejo</a> is <ahref="https://gitea.com">Gitea’s</a> fork.</p>
<p>I’ve created related Github issue: <ahref="https://github.com/zorn-v/nextcloud-social-login/issues/440">https://github.com/zorn-v/nextcloud-social-login/issues/440</a></p>
<span>Powered by <ahref="https://gohugo.io">Hugo</a> ::</span>
<span><ahref="https://github.com/panr/hugo-theme-terminal"target="_blank">Theme</a> by <ahref="https://github.com/panr"target="_blank">panr</a> ::</span>
<span> <ahref="https://git.sadium.cyou/SadmL/sadium">Mod</a>. by <ahref="https://git.sadium.cyou/SadmL">SL</a> ::</span>