Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
Firstly: Umbraco version 7.13.1
I am trying to implement a custom password checker for a site.
I have followed this guide: https://our.umbraco.com/documentation/reference/security/custom-password-checker
My custom password checker is being run, and it validates the password check to valid.
However umbraco just displays an empty white screen with the url: http://localhost:61964/umbraco#/login/false?returnPath=%252Fumbraco
If I change the password checker to invalid password, then I get the normal read error message that my credentials are invalid.
Any idea on how to proceed from here?
Hi Thomas,
Is there any information in the logging available? Also, do you mind sharing your code so I can test it locally as well?
the code compiles and runs. I can debug through both the WundermanPasswordChecker class and the UmbracoCustomOwinStartup class
public class WundermanPasswordChecker : IBackOfficeUserPasswordChecker { public Task<BackOfficeUserPasswordCheckerResult> CheckPasswordAsync(BackOfficeIdentityUser user, string password) { if (password != "test") { return Task.FromResult(BackOfficeUserPasswordCheckerResult.InvalidCredentials); } return Task.FromResult(BackOfficeUserPasswordCheckerResult.ValidCredentials); } } public class UmbracoCustomOwinStartup { public void Configuration(IAppBuilder app) { ApplicationContext applicationContext = ApplicationContext.Current; app.ConfigureUserManagerForUmbracoBackOffice<BackOfficeUserManager, BackOfficeIdentityUser>( applicationContext, (options, context) => { var membershipProvider = Umbraco.Core.Security.MembershipProviderExtensions.GetUsersMembershipProvider().AsUmbracoMembershipProvider(); var settingContent = Umbraco.Core.Configuration.UmbracoConfig.For.UmbracoSettings().Content; var userManager = BackOfficeUserManager.Create( options, applicationContext.Services.UserService, applicationContext.Services.EntityService, applicationContext.Services.ExternalLoginService, membershipProvider, settingContent); userManager.BackOfficeUserPasswordChecker = new WundermanPasswordChecker(); return userManager; } ); } }
Running in a newly installed VS2017 web project installed via nuget
The log files does not show anything related to this. In fact nothing is written to the log during the login phase
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Custom password checker
Hi
Firstly: Umbraco version 7.13.1
I am trying to implement a custom password checker for a site.
I have followed this guide: https://our.umbraco.com/documentation/reference/security/custom-password-checker
My custom password checker is being run, and it validates the password check to valid.
However umbraco just displays an empty white screen with the url: http://localhost:61964/umbraco#/login/false?returnPath=%252Fumbraco
If I change the password checker to invalid password, then I get the normal read error message that my credentials are invalid.
Any idea on how to proceed from here?
Hi Thomas,
Is there any information in the logging available? Also, do you mind sharing your code so I can test it locally as well?
the code compiles and runs. I can debug through both the WundermanPasswordChecker class and the UmbracoCustomOwinStartup class
Running in a newly installed VS2017 web project installed via nuget
The log files does not show anything related to this. In fact nothing is written to the log during the login phase
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.