# SSO and Refresh Tokens

**URL:** <https://community.auth0.com/t/sso-and-refresh-tokens/38474>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [February 26, 2020, 12:19am UTC](https://community.auth0.com/t/sso-and-refresh-tokens/38474 "2020-02-26T00:19:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![carolus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/carolus/32/13315_2.png) [@carolus](https://community.auth0.com/u/carolus)\
**Post date:** [February 26, 2020, 12:19am UTC](https://community.auth0.com/t/sso-and-refresh-tokens/38474/1 "2020-02-26T00:19:42Z")

</div>

We have SSO across all of the sites that seem to work, the problem comes in on how we implement refresh-tokens.

We have multiple sites using auth0 authentication. I want to know does auth0 mirror the access\_token across all of those sites and if I refresh that token will it mirror across the sites?

If not how would we go about using one (mirrored) token for all sites and it automatically update across the sub sites when a token refreshes.

 ![Screen Shot 2020-02-26 at 00.18.45](https://global.discourse-cdn.com/auth0/original/3X/2/b/2b0887f74b32d6511939bf9b46ca1c19669bf3f2.png)

Diagram:  
Line: Refresh call  
Line: Current token / New Token  
Line: Can request refresh token

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [February 26, 2020, 7:37am UTC](https://community.auth0.com/t/sso-and-refresh-tokens/38474/2 "2020-02-26T07:37:21Z")

</div>

A few questions about your setup, because your mentioning authentication (not authorization) as well as access token (and not ID token):  
What type of applications are these App 1 - App 3 from a technology point of view? How do you work with them and the token?

The reason I’m asking is to understand whether these are client applications where you simply just want to identify a user (=authentication), or whether these are backend servers (APIs) that you want to protect and only grant access with access token (in the sense of OAuth2: your resource servers) (=authorization). If it’s the latter, the question would be whether these three applications are registered as APIs in Auth0 and thus being different audiences. (This is relevant because an access token can only be for one audience, not multiple).

Where do you store the refresh token? And to clarify, is it just one refresh token or three? Which application requests this refresh token in the first place?

The setup isn’t 100% clear to me and therefore hard to five a proper answer, but in general, there is no mirroring or alike mechanism in place.

And maybe helpful resources:

> **[What Is and How Does Single Sign-On Authentication Work?](https://auth0.com/blog/what-is-and-how-does-single-sign-on-work/)**
>
> In this post you will learn about Single Sign-On authentication and how to use it for your web apps

> **[Tokens](https://auth0.com/docs/secure/tokens)**
>
> Describes the types of tokens related to identity and authentication and how they are used by Auth0.

---

<div class="post-metadata">

**Author:** ![carolus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/carolus/32/13315_2.png) [@carolus](https://community.auth0.com/u/carolus)\
**Post date:** [April 26, 2020, 7:56pm UTC](https://community.auth0.com/t/sso-and-refresh-tokens/38474/4 "2020-04-26T19:56:48Z")

</div>

The links you provided really creared up my misquided undestanding.  
Thanks!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 27, 2020, 9:46am UTC](https://community.auth0.com/t/sso-and-refresh-tokens/38474/5 "2020-04-27T09:46:37Z")

</div>

Perfect! We’re here for you!

---

<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:** [May 12, 2020, 9:50am UTC](https://community.auth0.com/t/sso-and-refresh-tokens/38474/6 "2020-05-12T09:50:58Z")

</div>

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