# Auth0 not storing Azure AD refresh token with OpenId Connect

**URL:** <https://community.auth0.com/t/auth0-not-storing-azure-ad-refresh-token-with-openid-connect/103375>\
**Category:** Get Help\
**Tags:** oidc-enterprise-connection, connections\
**Created:** [March 27, 2023, 5:57am UTC](https://community.auth0.com/t/auth0-not-storing-azure-ad-refresh-token-with-openid-connect/103375 "2023-03-27T05:57:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk123](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mk123/32/12776_2.png) [@mk123](https://community.auth0.com/u/mk123)\
**Post date:** [March 27, 2023, 5:57am UTC](https://community.auth0.com/t/auth0-not-storing-azure-ad-refresh-token-with-openid-connect/103375/1 "2023-03-27T05:57:12Z")

</div>

When we use a Social connection and offline\_access scope for Azure AD, then Auth0 stores the Azure AD refresh\_token and access\_token in identities object in user.

But we when use OpenID Connect enterprise connection and offline\_access scope for the same Azure AD application, then Auth0 doesn’t store the Azure AD refresh\_token and access\_token in identities object in user.

Is this expected behavior? Is there no way to get Azure AD refresh\_token and access\_token when using OpenID Connect?

---

<div class="post-metadata">

**Author:** ![matt.g](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matt.g/32/35982_2.png) [@matt.g](https://community.auth0.com/u/matt.g)\
**Post date:** [March 29, 2023, 9:03pm UTC](https://community.auth0.com/t/auth0-not-storing-azure-ad-refresh-token-with-openid-connect/103375/3 "2023-03-29T21:03:41Z")

</div>

Hi @mk123,

Welcome back to the Auth0 Community!

Unfortunately Enterprise OpenID connections don’t currently support IDP access\_tokens or refresh\_tokens, however I confirmed that this is on the product roadmap and could be released as early as April 2023.

I hope this helps!

Thank you,  
Matt

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 12, 2023, 9:03pm UTC](https://community.auth0.com/t/auth0-not-storing-azure-ad-refresh-token-with-openid-connect/103375/4 "2023-04-12T21:03:52Z")

</div>

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