Open chrisbrasington opened 1 year ago
Hi,
I think adding options.UseSecurityTokenValidator = true;
have solved the issue for me.
logins.AddMemberLogin(
memberAuthenticationBuilder =>
{
memberAuthenticationBuilder.AddOpenIdConnect(
// The scheme must be set with this method to work for the umbraco members
memberAuthenticationBuilder.SchemeForMembers(OpenIdConnectMemberExternalLoginProviderOptions.SchemeName),
options =>
{
// START To fix error when going to /signin.oidc - see https://stackoverflow.com/questions/72922593/asp-net-core-openidconnect-message-state-is-null-or-empty
//options.SkipUnrecognizedRequests = true;
options.UseSecurityTokenValidator = true;
// END
var config = builder.Config;
Hey first off this code sample is fantastic, definitely gets me up and running.
I noticed an oddity - when I tried to implement an OpenIdConnect provider (before reading umbraco documentation and using member auto-linking), I hit a snag where my AuthenticationMiddleware and the default callback path of /signin-oidc error.
I noticed this project also exhibits the same error where navigation to /signin-oidc has an exception reproudicble by just running this project.
Do you know more about why this may be or an adjustment that can be made during AddOpenIdConnect? Using IUmbracoBuilder.AddMemberExternalLogins was just slightly different enough from a non-umbraco sample I had working, so this threw me off for some time until I found this project.