I have enabled federated authentication for Sitecore frontend website. But now I see external login button(login with google) on the sitecore login page. How can I remove this button from the sitecore login page but have federated authentication enabled for the website login
1 Answer
If you really just need to hide a button on the identity server front page, the simplest solution would be to just stick some CSS on the page to hide it.
To do this, access identity server file system and navigate to:
<root>\sitecore\Sitecore.Plugin.IdentityServer\Views\Shared\_Layout.cshtml
Then in the head of the document add:
<style>
.external-providers a {display:none}
</style>
You might need to play around with CSS if you have multiple external providers and only want to select one of them.
Some more info on using identity server to link different sitecore domains to different external providers: https://deanobrien.uk/sitecore-identity-server-mapping-custom-fields-and-roles-from-azure-ad/
IdentityProvidersPerSitesMapEntry
. Make sure thatshell
and 'admin' sites are not included in the map.