When using SSO, disable user/password login

0
Hi all, my first topic on this forum as I just joined the community. I have an application with SSO module enabled against AzureAD. I would like to make sure that only SSO can be used for login, except for Administrator account (MXAdmin renamed) or for a few Administrator accounts. I assume that if SSO doesn’t work for any reason, it has to be fixed using a user/password login with admin privileges Unfortunately, I cannot create app users without providing a password. I was thinking about a workflow running after creation of a standard user to replace the password with a very complex one and for a scheduled workflow to do the same replacement of password (except for admins) Any one did already experienced it ? thanks in advance for your feedback/experience sharing   KR arnaud
asked
8 answers
1

We implemented SSO against AzureAD multiple times. Make sure to give Mendix-auto-created SSO users a random password upon generation and roles based upon the claims provided by the AD. You can even reset this password at every login to a new random value – there is even a community commons action to generate random passwords. If the user has no write access to their own password, then the password functionality effectively becomes useless for SSO users. Also make sure to update user data (eg roles) upon each login. You can also implement account deactivation here, etc. In other words, the user provisioning flow is crucial here. 
 

Hope this helps.

 

Best regards,

 

Wouter

answered
0

What is stopping you from putting an SSO button on the login page (simple HTML will suffice), and leaving the password form as is?

If users are logging in via SSO then they won’t have a password to begin with – they will have an account but it will be accessible only via SSO.

You don’t need to create app users beforehand because the SSO module can create new accounts automatically if one with a matching name wasn’t found.

answered
0

That is an idea, but it means I have to ask users to first provision their account before I can assign them a role.

Also, my main concern is about Compliancy, I need to make sure a user cannot define/change his password to make sure I can rely on AzureAD for leavers.

If a user can manage his password and use the standard login, I’m not sure a leaver cannot access the application anymore.

answered
0

Did you manage to get it done to satisfaction?

answered
0

Did you manage to get it done to satisfaction?

answered
0

not yet. something i’ll first have to experiment localy and then against a test environment.. I’ll keep you posted

answered
0

I have been trying to solve the same challenge and recently came across this module from Mendix:

answered
0

Similar to the module from Mendix, I created:

answered