Just to let you know that with 6.7, the login page now shows both JWT and Credentials as “tabs” above login window, but it displays the form corresponding to Credentials without actually clicking that button.
So then if I enter credentials, it doesn’t actually call the credentials provider. However if I press the Credentials “tab/button”, then it goes to credentials and works.
It’s a small thing but very confusing. Trying to log in and in, and it never works…
The sign-in dialog is from the /ui path. Although I have put it under a sub-path like this:
SetConfig(new HostConfig
{
DebugMode = AppSettings.Get(nameof(HostConfig.DebugMode), false),
HandlerFactoryPath = "api" // so SS knows we're served behind this path, meaning /ui won't work, but /api/ui works (for example)
});
Here’s the auth config:
appHost.Plugins.Add(new AuthFeature(() =>
new CustomUserSession(),
new IAuthProvider[] {
new ConfigCredentialsAuthProvider(AppSettings),
new ActiveDirectoryCredentialsAuthProvider(AppSettings),
new JwtAuthProvider(AppSettings) {
ActiveDirectoryCredentialsAuthProvider is a subclass of CredentialsAuthProvider by the way. I put a breakpoint here and see that it’s not called, until I click the “credentials” tab/button first.