Disable Username/Password Login for Linked Enterprise Accounts
Last Updated:
Overview
Solution
1) You could disable the Database connection for the Application. You can do this by going to the Auth0 Dashboard > Applications > Applications > Choose your application > Connections tab > turn off the toggle for the Database connection.
2) Post Login Action
You can add an access control using Action—something like this sample code.
exports.onExecutePostLogin = async (event, api) => {
if (event.user.identities[0].connection === "Username-Password-Authentication") {
api.access.deny("Please log in with SAML");
}
}
3) Unlink User Account and delete the primary identity (Username/Password).Unlink User Accounts: https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts