# Facing problem in accessing office 365 via Auth0 using custom javascript solution

**URL:** <https://community.auth0.com/t/facing-problem-in-accessing-office-365-via-auth0-using-custom-javascript-solution/6923>\
**Category:** Get Help\
**Tags:** cutom-javascript-app, office-365, custom-javascript-so\
**Created:** [June 6, 2017, 1:43pm UTC](https://community.auth0.com/t/facing-problem-in-accessing-office-365-via-auth0-using-custom-javascript-solution/6923 "2017-06-06T13:43:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyzadvaiya](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@xyzadvaiya](https://community.auth0.com/u/xyzadvaiya)\
**Post date:** [June 6, 2017, 1:43pm UTC](https://community.auth0.com/t/facing-problem-in-accessing-office-365-via-auth0-using-custom-javascript-solution/6923/1 "2017-06-06T13:43:12Z")

</div>

There is Custom javascript application, we had login to our application via Auth0. Also setup SSO integration with Office 365.  
When we directly login to office via [portal.office.com](http://portal.office.com), it redirects to Auth0 custom domain login page  
Now on login to our application, it does not automatically sign in to office365 as there is single sign-on so it should login  
and also we logout from our application, it doesnot logout from office365.  
It always keeps sign in that is big problem

---

<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:54am UTC](https://community.auth0.com/t/facing-problem-in-accessing-office-365-via-auth0-using-custom-javascript-solution/6923/2 "2018-03-02T05:54:24Z")

</div>


