# OIDC authenticate response documentation shows different response to what I can see

**URL:** <https://discuss.elastic.co/t/oidc-authenticate-response-documentation-shows-different-response-to-what-i-can-see/324013>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [January 26, 2023, 11:04am UTC](https://discuss.elastic.co/t/oidc-authenticate-response-documentation-shows-different-response-to-what-i-can-see/324013 "2023-01-26T11:04:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steelydan96](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@steelydan96](https://discuss.elastic.co/u/steelydan96)\
**Post date:** [January 26, 2023, 11:04am UTC](https://discuss.elastic.co/t/oidc-authenticate-response-documentation-shows-different-response-to-what-i-can-see/324013/1 "2023-01-26T11:04:00Z")

</div>

Hello, I am using version 8.5.2 of elasticsearch, [and the documentation states](https://github.com/elastic/elasticsearch/blob/8.5/x-pack/docs/en/rest-api/security/oidc-authenticate-api.asciidoc), for an OIDC authenticate response, I should receive:

```auto
{
  "access_token" : "dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==",
  "type" : "Bearer",
  "expires_in" : 1200,
  "refresh_token": "vLBPvmAB6KvwvJZr27cS"
}

```

In my environment I am receiving the following fields:

```auto
{
    "username": "myusername",
    "access_token": "asdflkajsdfjasdf",
    "refresh_token": "aklsdlkeuioasf",
    "expires_in": 1200,
    "authentication": { <OIDC claims> }
}

```

Are the fields in the documentation incorrect? Or is something not correct with my setup?

Many thanks

---

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [January 31, 2023, 12:32am UTC](https://discuss.elastic.co/t/oidc-authenticate-response-documentation-shows-different-response-to-what-i-can-see/324013/2 "2023-01-31T00:32:06Z")

</div>

That doc page is out of date. I have raised an issue to fix it [[Doc] Authentication information is missing certain API responses · Issue #93366 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/93366)  
Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 28, 2023, 12:32am UTC](https://discuss.elastic.co/t/oidc-authenticate-response-documentation-shows-different-response-to-what-i-can-see/324013/3 "2023-02-28T00:32:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
