Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

NAV 2018 CU1 Office 365 Single Sign On setup

Posted on by Microsoft Employee

Hi,

I am trying to setup NAV single sign on with Office 365. It is now working with the Windows client. The web client is not working. In my deployment the NAV service and the web client is running on seperate servers. My problem is that I cant run the Set-NavSingleSignOnWithOffice365 on the web server because the script assumes that the NAV instance is installed on the same server. 

I have manually changed the navsettings.json setting for "ClientServicesCredentialType":  "AccessControlService". When I type the URL for the webclient I am redirected to the Office 365 sign in page. I enter credentials and they get verified. After that the browser enters an infinity loop and after 15 seconds I get a 404 - file or directory not found. The URL in the browser is at this point 

"nav.mydomain.dk/.../SignIn"

Can anyone assist me here? What settings on the webserver am I missing?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2018 CU1 Office 365 Single Sign On setup

    Hi Thomas,

    It would be great if you can share some reference to do the Single Sign on manually, i tried following the MSDN instruction but due to some wroing URL i am getting weired error message. would apriciate if you can share steps to do it manually ?

    Regards

    Subhash

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2018 CU1 Office 365 Single Sign On setup

    For those of you that are struggling with this: I managed to make NAV2018 CU02 WebClient + WinClient work (Azure installation).

    It can work if the configuration is correct - but I had no success using the Powershell script Set-NavSingleSignOnWithOffice365.ps1.

    Do the configuration manually!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2018 CU1 Office 365 Single Sign On setup

    I have exact same problem on an Azure VM where web-appl. and NAV Service (NAV 2018 CU02) are installed on the same server.

    I have given up on the Set-NavSingleSignOnWithOffice365.ps1 script - I can't make it work - so I configured everything manually.

    The Windows Client (RTC) now seems to work ok, but the web appl. enters a loop during login and fails after 10-15 secs.

    Very disappointing!

    Further I find it very hard to debug because I don't know exactly what is supposed to happen (I don't understand Office SSO).

    If anyone has a good document to share it will be appreciated a lot!.

  • RE: NAV 2018 CU1 Office 365 Single Sign On setup

    Same problema in NAV 2018 CU02

    RTC ok, web client fail

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2018 CU1 Office 365 Single Sign On setup

    Please hover the mouse over the url to see the full content. The url is appended with this

    ReturnUrl=%2Fdynamicsnav110%2F%3FReturnUrl%3D%252fdynamicsnav110%252f%253fReturnUrl%253d%25252fdynamicsnav110%25252f%25253fReturnUrl%25253d%2525252fdynamicsnav110%2525252f%2525253fReturnUrl%2525253d%252525252fdynamicsnav110%252525252f%252525253fReturnUrl%252525253d%25252525252fdynamicsnav110%25252525252f%25252525253fReturnUrl%25252525253d%2525252525252fdynamicsnav110%2525252525252f%2525252525253fReturnUrl%2525252525253d%252525252525252fdynamicsnav110%252525252525252f%252525252525253fReturnUrl%252525252525253d%25252525252525252fdynamicsnav110%25252525252525252f%25252525252525253fReturnUrl%25252525252525253d%2525252525252525252fdynamicsnav110%2525252525252525252f%2525252525252525253fReturnUrl%2525252525252525253d%252525252525252525252fdynamicsnav110%252525252525252525252f%252525252525252525253fReturnUrl%252525252525252525253d%25252525252525252525252fdynamicsnav110%25252525252525252525252f%25252525252525252525253fReturnUrl%25252525252525252525253d%2525252525252525252525252fdynamicsnav110%2525252525252525252525252f%2525252525252525252525253fReturnUrl%2525252525252525252525253d%252525252525252525252525252fdynamicsnav110%252525252525252525252525252f%252525252525252525252525253fReturnUrl%252525252525252525252525253d%25252525252525252525252525252fdynamicsnav110%25252525252525252525252525252f%25252525252525252525252525253fReturnUrl%25252525252525252525252525253d%2525252525252525252525252525252fdynamicsnav110%2525252525252525252525252525252f%2525252525252525252525252525253fReturnUrl%2525252525252525252525252525253d%252525252525252525252525252525252fdynamicsnav110%252525252525252525252525252525252f%252525252525252525252525252525253fReturnUrl%252525252525252525252525252525253d%25252525252525252525252525252525252fdynamicsnav110%25252525252525252525252525252525252f%25252525252525252525252525252525253fReturnUrl%25252525252525252525252525252525253d%2525252525252525252525252525252525252fdynamicsnav110%2525252525252525252525252525252525252f%2525252525252525252525252525252525253fReturnUrl%2525252525252525252525252525252

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans