
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?
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.
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