# Using OAuth2 for Git Repo Cloning in Gitea

**URL:** <https://forum.gitea.com/t/using-oauth2-for-git-repo-cloning-in-gitea/7884>\
**Category:** Gitea Usages\
**Created:** [September 22, 2023, 2:07am UTC](https://forum.gitea.com/t/using-oauth2-for-git-repo-cloning-in-gitea/7884 "2023-09-22T02:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VeseliKit](https://avatars.discourse-cdn.com/v4/letter/v/74df32/32.png) [@VeseliKit](https://forum.gitea.com/u/VeseliKit)\
**Post date:** [September 22, 2023, 2:07am UTC](https://forum.gitea.com/t/using-oauth2-for-git-repo-cloning-in-gitea/7884/1 "2023-09-22T02:07:55Z")

</div>

I have successfully set up external OAuth2 authentication in Gitea, allowing me to log in to the web interface. However, I’m unable to clone repositories using OAuth2 credentials. Is it possible to use OAuth2 for repository cloning, or is Git’s native username/password or SSH key authentication the only option for this purpose in Gitea?

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [September 22, 2023, 2:25am UTC](https://forum.gitea.com/t/using-oauth2-for-git-repo-cloning-in-gitea/7884/2 "2023-09-22T02:25:06Z")

</div>

It has been supported yet.
