Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Portals single sign on

Posted on by 75

We have selected a new self service portal to allow users to add new cases.

We want to make it as easy as possible for users, ideally we'd like to provide a link that would take them directly to the portal and use SSO to log them in.

Currently we have set up Azure AD but we are having to click the 'Sign in' link and then click on the 'Azure AD' button.

Is it possible to do away with both of these steps?

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Portals single sign on

    Hi mmcmahon,

    It would be not easy to do it with both of these steps.

    Because like 'Sign in with a local account' form, actually 'Azure AD' button and its label 'Sign in with an external account' is also a form,  

    when we click the button, it will request "Account/Login/ExternalLogin" endpoint with some built-in javascript function in Portal to complete whole authentication,

    these embedded scripts are complex(e.g: token for authentication will be generated randomly from Portal back-end) and there are limited options for us to do customization from client side.

    My workaround is that loading "Sign in" page from an iframe element, but the loaded page will be hidden,

    we'll read iframe's document and copy whole 'Azure AD' form element and append it to our custom element.

    pastedimage1585551687191v1.png

    Web template code:

    {% include 'breadcrumbs' %}
    {% include 'page_header' %}

    By this way, user won't navigate to Sign in page manually and they can click 'Azure AD' button in custom page to login.

    Regards,

    Clofly

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans