Hello
At first I’d like to point out I’m very excited about Squidex and its potential to make our life a lot easier creating a website for our nonprofit organisation. Not to mention the life of the future content managers.
After playing around in the Squidex Cloud, yesterday I tried to get a local instance of Squidex running.
My goal is to connect our own IdenityServer to Squidex and we came pretty far with it in a few hours time.
The problem I experience is the user being null at the time we try to submit the consent settings during the signup proces of a user. We are using the master branch (checked out about 24 hours before posting this), with unchanged code except for of course the configuration in appsettings.json to connect our OIDC client, which seems to work fine.
We can see the user gets logged in succesfully and gets redirected to the consent page, as you can see at this piece of code.
if (!isLoggedIn)
{
return RedirectToAction(nameof(Login));
}
else if (user != null && !user.HasConsent())
{
--> return RedirectToAction(nameof(Consent), new { returnUrl }); <--
}
else
{
return RedirectToReturnUrl(returnUrl);
}
But when we get there and submit the consent settings, the User (from HttpContext) is null
at this code line.
var user = await userManager.GetUserWithClaimsAsync(User);
The first thought was that we did something wrong in configuring our IdentityServer, but the result stays the same when logging in with a Google Account. Could you help with this?
The new user does show up in the MongoDb database, but when we try to log in at this stage, we just get redirected to the login page again and again.
My assumption is that there should be a cookie set after logging in, right? That way the consent page can use the cookie to see the just signed up user.
I hope you can help, we’re really looking forward to using Squidex as a provider of content for our organisations new website. Thank you for all the hard work put in to this project and thanks in advance for helping us out.
Kinds regards,
Tim