please i need help :-
how i can create user without enter any password (text or random password) . shall i need to create custom authentication provider like (google and facebook) if yes how i can do this ? if Not necessary what is the solution ?
many thanks
3 Answer(s)
-
0
Hi @thiqah
Password field is required in ABP Framework, see https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/Authorization/Users/AbpUserBase.cs#L131.
You can set a random password in the constructor of CreateOrUpdateUserInput class.
But, I couldn't understand why you want to do this, could you explain a bit more detailed ?
-
0
Hi @ismcagdas
i actually thought before posting my question that the password wasn't required while logining through SSO and i needed local DB to add the user data from active directory and the admin won't add the passsword and then for login it will check username in local db after make sure that the user already exist in ACD ,i don't need password for any thing.
the user won't be able to change the password also i already deleted change password from top bar and from create and update user but i have exception in add .
-
0
Hi, you can set random password when creating such user. This is how abp/anz handles external authentication.
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/f3c49e26c09cc2acd8b9948296c74330004e7185/src/Abp.ZeroCore/Authorization/AbpLoginManager.cs#L307-L311