Hello, I’m submitting a…
[ ] Regression (a behavior that stopped working in a new release)
[️ ] Bug report
[ ] Performance issue
[ ] Documentation issue or request
Current behavior
Registering or logging in with adminEmail is successful, but failed with OIDC.
Minimal reproduction of the problem
1.Clone
git clone https://github.com/Squidex/squidex.git && cd squidex/src/Squidex
npm i && npm run build && npm start
2.Change the appsettings.json
...
"adminEmail": "xxx",
"adminPassword": "ZzSncL721662!",
...
"oidcName": "OIDC",
"oidcAuthority": "https://xxx.auth0.com/", ###(both tested self oid server "http://loalhost:5000/")
"oidcClient": "xxx",
"oidcSecret": "xxx",
...
3.Open Squidex.sln with Visual Studio For Mac, ️Run
4.Click “Login with ExternalOidc” or “Signup with ExternalOidc”, submit the auth0 form(and user created in auth0), but(or self hosted directly) redirect to “Operation failed, We are really sorry that something went wrong.”
5.Check the MongoDB, there is no user creation in the table Identity_Users.
6.Check the log, find stackTrace: ...C:\\local\\identity\\server4...
Environment
- [ ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ️] Self hosted with other version (MacOS)
- [ ] Cloud version
Browser:
- [️ ] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [️ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.0/System.IO.MemoryMappedFiles.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
{
"logLevel": "Error",
"message": "An unhandled exception has occurred while executing the request.",
"eventId": {
"id": 1,
"name": "UnhandledException"
},
"exception": {
"type": "System.NullReferenceException",
"message": "Object reference not set to an instance of an object.",
{
"logLevel": "Error",
"message": "An unhandled exception has occurred while executing the request.",
"eventId": {
"id": 1,
"name": "UnhandledException"
},
"exception": {
"type": "System.NullReferenceException",
"message": "Object reference not set to an instance of an object.",
"stackTrace": " at Squidex.Areas.IdentityServer.Controllers.Extensions.GetExternalLoginInfoWithDisplayNameAsync(SignInManager`1 signInManager, String expectedXsrf) in /Users/.../src/Squidex/Areas/IdentityServer/Controllers/Extensions.cs:line 23\n at Squidex.Areas.IdentityServer.Controllers.Account.AccountController.ExternalCallback(String returnUrl) in /Users/.../src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs:line 227\n at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()\n at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)\n at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events) in C:\\local\\identity\\server4\\IdentityServer4\\src\\Hosting\\IdentityServerMiddleware.cs:line 72\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) in C:\\local\\identity\\server4\\IdentityServer4\\src\\Hosting\\BaseUrlMiddleware.cs:line 36\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)"
},