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