Product: PowerShell Universal
Version: 4.5.3
I am trying to implement OIDC login and running into an issue. I have the configuration set in the authentication.ps1 (through the GUI)
Set-PSUAuthenticationMethod -Type "OpenIDConnect" -CallbackPath "auth/signin-oidc" -ClientId <clientid> -ClientSecret <clientsecret> -Authority "https://login.microsoftonline.com/<tenant>" -Disabled
and when enabling it, the site goes into a redirect loop and never exits.
Looking in the system log shows the “System.InvalidOperationException: No authentication handler is registered for the scheme ‘OpenIdConnect’. The registered schemes are: Bearer, Identity.External, Cookies, Basic, Negotiate. Did you forget to call AddAuthentication().AddSomeAuthHandler?” error.
Looking at the other posts, I wonder if this is similar to No authentication handler is registered for the scheme 'OpenIdConnect', not that we have an expiring license, but after adding the license it was not put into the license.ps1 file. We are using the online check one, and it appears that doesn’t use the license.ps1(?) and then I also added the offline version of our license, and that doesn’t show up there either.
I’m wondering if it’s expecting a license there and not finding it and so it thinks it’s not licensed for that feature and thus not registering that scheme information?
Any assistance would be appreciated. Thanks.