# Oauth token\_url

**URL:** <https://community.grafana.com/t/oauth-token-url/78292>\
**Category:** Authentication\
**Created:** [December 19, 2022, 1:50pm UTC](https://community.grafana.com/t/oauth-token-url/78292 "2022-12-19T13:50:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bb123xx](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@bb123xx](https://community.grafana.com/u/bb123xx)\
**Post date:** [December 19, 2022, 1:50pm UTC](https://community.grafana.com/t/oauth-token-url/78292/1 "2022-12-19T13:50:26Z")

</div>

Hello I am trying to connect grafana login to my own API and I couldn’t find what should be returned from token\_url in the documentation.  
Nothing is written about token\_url, I am using generic oAuth

Link to the doc:

> **[OAuth authentication | Grafana documentation](https://grafana.com/docs/grafana/v8.5/auth/generic-oauth/)**
>
> Grafana OAuthentication Guide

can someone guide me on how to implement the token\_url in my api or anything that would be helpful.

Thank you

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [December 19, 2022, 3:01pm UTC](https://community.grafana.com/t/oauth-token-url/78292/2 "2022-12-19T15:01:48Z")

</div>

It is `OAuth 2.0` response: [RFC 6749: The OAuth 2.0 Authorization Framework](https://www.rfc-editor.org/rfc/rfc6749#section-4.1.4)  
OAuth is a standard, so read that RFC of used standard. I would recommend to to use `Open ID Connect` standard (built on top of OAuth 2.0) and then response will be slightly different: [Final: OpenID Connect Core 1.0 incorporating errata set 1](https://openid.net/specs/openid-connect-core-1_0.html#TokenResponse)

---

<div class="post-metadata">

**Author:** ![bb123xx](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@bb123xx](https://community.grafana.com/u/bb123xx)\
**Post date:** [December 20, 2022, 3:45pm UTC](https://community.grafana.com/t/oauth-token-url/78292/3 "2022-12-20T15:45:14Z")

</div>

Thank you for your reply.

Do you know how am I supposed to get the values for:  
client\_id and client\_secret.

```auto
client_id = YOUR_APP_CLIENT_ID
client_secret = YOUR_APP_CLIENT_SECRET

```
