# What's correct call back URL when using Google OAuth2

**URL:** <https://forum.gitea.com/t/whats-correct-call-back-url-when-using-google-oauth2/386>\
**Category:** Install/Maintain/Configure\
**Created:** [July 6, 2018, 4:03am UTC](https://forum.gitea.com/t/whats-correct-call-back-url-when-using-google-oauth2/386 "2018-07-06T04:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dungvv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dungvv/32/195_2.png) [@dungvv](https://forum.gitea.com/u/dungvv)\
**Post date:** [July 6, 2018, 4:03am UTC](https://forum.gitea.com/t/whats-correct-call-back-url-when-using-google-oauth2/386/1 "2018-07-06T04:03:56Z")

</div>

Hi everyone,  
I’m new to gitea and managed to install Gitea 1.5.  
I want to let my friend log in to Gitea using their Google account so I created an application on Google console and already have the Client Id and Client secret.  
However, I cannot find the correct call back URL for my Gitea.  
After enabled Google authentication for my install, the login button redirect to /user/oauth2/google auth/callback  
Then Google show this error

```
Invalid parameter value for redirect_uri: Uri must consist of printable ASCII characters: <ROOT URL>/user/oauth2/google auth/callback

```

Could anyone successfully set up OAuth2 with Google? What’s the correct callback URL of Gitea?

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [July 7, 2018, 3:06pm UTC](https://forum.gitea.com/t/whats-correct-call-back-url-when-using-google-oauth2/386/2 "2018-07-07T15:06:03Z")

</div>

I think google doesn’t like the space. Could you try changing `google auth` to just `google`?

---

<div class="post-metadata">

**Author:** ![dungvv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dungvv/32/195_2.png) [@dungvv](https://forum.gitea.com/u/dungvv)\
**Post date:** [July 8, 2018, 1:12pm UTC](https://forum.gitea.com/t/whats-correct-call-back-url-when-using-google-oauth2/386/3 "2018-07-08T13:12:21Z")

</div>

Oh, it works, thank you very much.  
Look how stupid I am. I didn’t know that gitea create callback url by using authentication source name.
