# Gitea as OAuth provider for ArgoCD

**URL:** <https://forum.gitea.com/t/gitea-as-oauth-provider-for-argocd/1626>\
**Category:** Install/Maintain/Configure\
**Created:** [November 1, 2019, 4:56pm UTC](https://forum.gitea.com/t/gitea-as-oauth-provider-for-argocd/1626 "2019-11-01T16:56:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommyknows](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tommyknows](https://forum.gitea.com/u/tommyknows)\
**Post date:** [November 1, 2019, 4:56pm UTC](https://forum.gitea.com/t/gitea-as-oauth-provider-for-argocd/1626/1 "2019-11-01T16:56:49Z")

</div>

Hi,

I’m trying to use Gitea as an OAuth2 Provider for ArgoCD.  
I followed the instructions [here](https://argoproj.github.io/argo-cd/operator-manual/sso/#existing-oidc-provider), and set the issuer to `https://[my-git-domain]/login/oauth/authorize`. Also tried setting it just `https://[my-git-domain]`.  
However, from Argo, I get the following error after pressing the “Login with Gitea” Button:

```auto
Failed to query provider "https://[my-git-domain]/login/oauth/authorize/": 404 Not Found

```

I traced the issue back to the function [here](https://github.com/coreos/go-oidc/blob/v2/oidc.go#L114). Interestingly, this OIDC implementation does not call only the issuer domain, but adds `/.well-known/openid-configuration` (Line #97).  
This explains the 404, gitea does not know about that URL.

So my question is, how do I connect Argo to Gitea as an OAuth Provider? Is it even possible?  
Am I using the wrong issuer URL?

Thanks
