# Google authentication for pmm server , Getting redirect\_url mismatch error

**URL:** <https://forums.percona.com/t/google-authentication-for-pmm-server-getting-redirect-url-mismatch-error/15328>\
**Category:** Uncategorized\
**Created:** [April 21, 2022, 1:12pm UTC](https://forums.percona.com/t/google-authentication-for-pmm-server-getting-redirect-url-mismatch-error/15328 "2022-04-21T13:12:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kotha\_Sambashiva\_Rao](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kotha_sambashiva_rao/32/6315_2.png) [@Kotha\_Sambashiva\_Rao](https://forums.percona.com/u/Kotha_Sambashiva_Rao)\
**Post date:** [April 21, 2022, 1:12pm UTC](https://forums.percona.com/t/google-authentication-for-pmm-server-getting-redirect-url-mismatch-error/15328/1 "2022-04-21T13:12:19Z")

</div>

Hi team,  
I am trying to authenticate pmm-server ui with [auth.google] but getting redirect\_url mismatch error  
My configuration in /etc/grafana/grafana.ini is

```auto
[auth.google]
enabled = true
allow_sign_up = true
client_id = myclientid
client_secret = my secret
scopes=
https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
auth_url = https://accounts.google.com/o/oauth2/auth
token_url = https://accounts.google.com/o/oauth2/token
api_url = https://www.googleapis.com/oauth2/v1/userinfo
allowed_domains = myorg.com
hosted_domain =

```

& in google credentials page urls are

- Authorized JavaScript Origins: [https://pmm.mycompany.com](https://pmm.mycompany.com)
- Authorized Redirect URLs: [https://pmm.mycompany.com/login/google](https://pmm.mycompany.com/login/google)

Still i am not able to figure out issue,Please let me know where i was going wrong

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [April 24, 2022, 1:48pm UTC](https://forums.percona.com/t/google-authentication-for-pmm-server-getting-redirect-url-mismatch-error/15328/3 "2022-04-24T13:48:59Z")

</div>

@Kotha_Sambashiva_Rao,  
I don’t believe this is a supported configuration for PMM. PMM uses an internal nginx to handle redirects and proxy, so maybe that is messing with your auth setup.

---

<div class="post-metadata">

**Author:** ![Kotha\_Sambashiva\_Rao](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kotha_sambashiva_rao/32/6315_2.png) [@Kotha\_Sambashiva\_Rao](https://forums.percona.com/u/Kotha_Sambashiva_Rao)\
**Post date:** [April 24, 2022, 2:40pm UTC](https://forums.percona.com/t/google-authentication-for-pmm-server-getting-redirect-url-mismatch-error/15328/4 "2022-04-24T14:40:48Z")

</div>

Then is there any way to use authentication except default one ? @matthewb

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [April 24, 2022, 6:19pm UTC](https://forums.percona.com/t/google-authentication-for-pmm-server-getting-redirect-url-mismatch-error/15328/5 "2022-04-24T18:19:49Z")

</div>

> **[Enable LDAP on Percona Monitoring and Management (PMM) - Percona Database...](https://www.percona.com/blog/2020/01/08/enable-ldap-on-percona-monitoring-and-management-pmm/)**
>
> Support for LDAP arrived at PMM version 2 thanks to the new version of Grafana, and here's how to configure it.
