# SSO Single Sign Out - Authorize Endpoint(Silent Authentication) Angular 2

**URL:** <https://community.auth0.com/t/sso-single-sign-out-authorize-endpoint-silent-authentication-angular-2/7891>\
**Category:** Get Help\
**Tags:** angular-2, single-sign-on, authorize-endpoint, sso\
**Created:** [August 18, 2017, 9:45pm UTC](https://community.auth0.com/t/sso-single-sign-out-authorize-endpoint-silent-authentication-angular-2/7891 "2017-08-18T21:45:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![varun.neelakantan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@varun.neelakantan](https://community.auth0.com/u/varun.neelakantan)\
**Post date:** [August 18, 2017, 9:45pm UTC](https://community.auth0.com/t/sso-single-sign-out-authorize-endpoint-silent-authentication-angular-2/7891/1 "2017-08-18T21:45:34Z")

</div>

Browser: Chrome  
Angular 2

Scenario: I have 2 two apps: App 1 and App 2 , Using SSO(Hosted login page) the user signs into App 1 and cookie is added to the browser store.

App 1 periodically tries to revalidate session by invoking the the below get request:

```
const url = https://mydomain/authorize?response_type=code&client_id=myclientid&redirect_uri=MyRedirectUrl&scope=openid&prompt=none';

```

Below is the code:

```
this.http.get(url).subscribe(data => {
        const test = data
      }, error => {
        this.logout();
      });

```

We are using angular 2 http service to make the above get request and the cookie is not being passed in the request header.

We are also seeing a CORS issue in the browser(I have added the URL to CORS in the client settings)

I have also tried renewAuth method but I am seeing the same issue  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 2, 2017, 8:28pm UTC](https://community.auth0.com/t/sso-single-sign-out-authorize-endpoint-silent-authentication-angular-2/7891/2 "2017-10-02T20:28:37Z")

</div>

The recommended and supported way to achieve that requirement (session validation and token renewal) would be to leverage the `renewAuth` method as it can simplify the process and also comes with formal support.

I tried to reproduce the issue, but failed to do so using the `renewAuth` approach. The Angular quickstart has a [specific step](https://auth0.com/docs/quickstart/spa/angular2/05-token-renewal) dedicated to this so you may also to follow that.

In addition, have in mind that **if you’re using social authentication you need to ensure that you’re using your own client application information**. Using the default Auth0 Dev social keys will have the side-effect of preventing SSO to work as expected; this is noted in the Angular step mentioned above and also on the reference docs about [limitations of Dev keys](https://auth0.com/docs/connections/social/devkeys#limitations-of-developer-keys).

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/sso-single-sign-out-authorize-endpoint-silent-authentication-angular-2/7891/3 "2018-03-02T05:56:00Z")

</div>


