What is your product version - v8.9.2** What is your product type (Angular or MVC) - Angular What is product framework type (.net framework or .net core) - net core 3.1
What is ABP Framework version - yes version 5.9.0
I have enable Identity Server 4 Integration & testing with client (ConsoleApiClient) working fine but getting error with MVC Client Testing with MVC Client
Added new client in appsettings.json
& download project aspnet-zero-samples(https://github.com/aspnetzero/aspnet-zero-samples ) -> IdentityServerClient project to test identity server with mvc client & update start up file.
but run both project & click secure tab
Getting the error could you please help to resolved this.
Testing with Client ASP.NET Zero solution has a sample console application (ConsoleApiClient) that can connects to the application, authenticates through IdentityServer4 and calls an API. working fine for me & getting valid result.
Thanks in an advance
3 Answer(s)
-
0
Hi, errror resolved with port update in appsetting.json when new client with port 62964 (IdentityServerClient project url ) then work secure tab then it navigate on /Ui/Login
"RedirectUris": [ "http://localhost:62964/signin-oidc" ], "PostLogoutRedirectUris": [ "http://localhost:62964/signout-callback-oidc" ],
http://localhost:44355/UI/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Ddemo%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A62964%252Fsignin-oidc%26response_type%3Did_token%26scope%3Dopenid%2520profile%26response_mode%3Dform_post%26nonce%3D637546868399508408.ZjcyZjk5ZGEtZGM4OS00OTBmLTlhY2UtMGZiNjI0YTA4YzI2N2I4OTc1ZTYtNmM2My00OTYyLThjZDItNTAzZDQ4ODFjMWVh%26state%3DCfDJ8CwMZ7PA8cpInOMaovscwk4G0-u04jQ5uDHMt5apBy6MyZy1AEDER_XUKknVjApGz2HFRgr517SV1PjkTLMd61TZJCR-6ao9ermKdnxQTxv91-_ZxRdvW2mZW1vkJW34ds81sW5wDvFhZWMKAtd9ILZ4gUd8mRAN8gEi_zz0aLjdpLiuakkx6iZ4QCjg_cxvNxhwEhmZndf4f3u9aXnvKbzdSysLwtkaS6XFhT8wxzXNcsiWCuuIxv0ZOC9VXRCyPHsMUsptc4Hz9qwmnYmCBFP8XIjOsFIqf-z5GA3oCRQGkWL_UfyAKfvNvARa6NOa5ntuYbD9_op-m0r2cdVfWB4%26x-client-SKU%3DID_NETSTANDARD2_0%26x-client-ver%3D5.3.0.0
But after enter valid credentials its unable to redirect consent page.
In log file getting the error INFO 2021-04-23 11:03:43,747 [4 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 7833.0809ms 200 text/html; charset=utf-8 INFO 2021-04-23 11:03:47,717 [4 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/1.1 GET http://localhost:44355/connect/authorize?client_id=demo&redirect_uri=http%3A%2F%2Flocalhost%3A62964%2Fsignin-oidc&response_type=id_token&scope=openid%20profile&response_mode=form_post&nonce=637547528276975075.YTQxMjg0ZWItN2ZkNC00NTcxLTgxOWMtMjA1M2FhMGMzMzBlMGU4MzA5ZmYtNTRlNy00ZTY3LTg2MDEtNzIyMDkzMTI2YmQz&state=CfDJ8CwMZ7PA8cpInOMaovscwk4RS-1Zn8SVpLARN8XbOxOLCxObXK58RrhFno-hZ1uaHqgjC7PFRw8z8CBc2yiI3PBHg34LfFpDAhU55Ckai3Rp2S_buPPBh5hgWZzmdsQ7dVGzJ6oIRtqJ13cn-jqmwhVqLmo16CnHgqztdm86bvXMJfL2nq0PRSM0hPowabAmo6mQYRY6rHxPPEjTtwy_d6LluiZeXZ1Jbu3FcYOzKMDFj1yNurGMhtTaILcLoOEhGFf0nSh8HFxEP_EN-bkir8J13pyMcH3NclyTYR7w-VS9kkAd2aSmxOSCC5lCjqX3UFGwHG76gLbNDLczrcuR0MI&x-client-SKU=ID_NETSTANDARD2_0&x-client-ver=5.3.0.0
INFO 2021-04-23 11:03:47,729 [4 ] Server4.Hosting.IdentityServerMiddleware - Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize INFO 2021-04-23 11:03:47,731 [4 ] ng.AuthorizeInteractionResponseGenerator - Showing login: User is not authenticated INFO 2021-04-23 11:03:47,735 [4 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 17.7832ms 302 INFO 2021-04-23 11:03:47,747 [4 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/1.1 GET http://localhost:44355/UI/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Ddemo%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A62964%252Fsignin-oidc%26response_type%3Did_token%26scope%3Dopenid%2520profile%26response_mode%3Dform_post%26nonce%3D637547528276975075.YTQxMjg0ZWItN2ZkNC00NTcxLTgxOWMtMjA1M2FhMGMzMzBlMGU4MzA5ZmYtNTRlNy00ZTY3LTg2MDEtNzIyMDkzMTI2YmQz%26state%3DCfDJ8CwMZ7PA8cpInOMaovscwk4RS-1Zn8SVpLARN8XbOxOLCxObXK58RrhFno-hZ1uaHqgjC7PFRw8z8CBc2yiI3PBHg34LfFpDAhU55Ckai3Rp2S_buPPBh5hgWZzmdsQ7dVGzJ6oIRtqJ13cn-jqmwhVqLmo16CnHgqztdm86bvXMJfL2nq0PRSM0hPowabAmo6mQYRY6rHxPPEjTtwy_d6LluiZeXZ1Jbu3FcYOzKMDFj1yNurGMhtTaILcLoOEhGFf0nSh8HFxEP_EN-bkir8J13pyMcH3NclyTYR7w-VS9kkAd2aSmxOSCC5lCjqX3UFGwHG76gLbNDLczrcuR0MI%26x-client-SKU%3DID_NETSTANDARD2_0%26x-client-ver%3D5.3.0.0
INFO 2021-04-23 11:03:47,753 [4 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'SmartSuite.Web.Controllers.UiController.Login (SmartSuite.Web.Host)' INFO 2021-04-23 11:03:47,765 [4 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "Login", controller = "Ui", area = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(System.String) on controller SmartSuite.Web.Controllers.UiController (SmartSuite.Web.Host). INFO 2021-04-23 11:03:48,788 [21 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Login. INFO 2021-04-23 11:03:48,796 [21 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executed ViewResult - view Login executed in 8.1186ms. INFO 2021-04-23 11:03:48,796 [21 ] c.Infrastructure.ControllerActionInvoker - Executed action SmartSuite.Web.Controllers.UiController.Login (SmartSuite.Web.Host) in 1031.489ms INFO 2021-04-23 11:03:48,796 [21 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'SmartSuite.Web.Controllers.UiController.Login (SmartSuite.Web.Host)' INFO 2021-04-23 11:03:48,797 [21 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 1050.5114ms 200 text/html; charset=utf-8 DEBUG 2021-04-23 11:08:05,051 [62 ] SmartSuite.Web.Chat.SignalR.ChatHub - A client is connected: {"ConnectionId":"-DE3jiew8xiCC-idx02XmA66c50cdf1","IpAddress":null,"TenantId":1,"UserId":null,"ConnectTime":"2021-04-23T05:38:05.0515022Z","Properties":{}} DEBUG 2021-04-23 11:18:26,858 [80 ] SmartSuite.Web.Chat.SignalR.ChatHub - A client is disconnected: -DE3jiew8xiCC-idx02XmA66c50cdf1 DEBUG 2021-04-23 11:19:28,551 [67 ] Abp.AspNetCore.SignalR.Hubs.AbpCommonHub - A client is connected: {"ConnectionId":"6Beo6re0DTzZsXpQH3-uDQ297f1c3c1","IpAddress":null,"TenantId":1,"UserId":null,"ConnectTime":"2021-04-23T05:49:28.551577Z","Properties":{}} DEBUG 2021-04-23 11:19:28,854 [88 ] Abp.AspNetCore.SignalR.Hubs.AbpCommonHub - A client is registered: 6Beo6re0DTzZsXpQH3-uDQ297f1c3c1 -
0
-
0
Hi @shedspotter
Could you create an issue on https://github.com/aspnetzero/aspnet-zero-core just by referencing this issue number ? We will help you in a short time.
Thanks,