Open Closed

Hangfire Authorize #7763


User avatar
0
yunusemrecaglar created
  • ABP Framework version: v7.2.2
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hello, I've implemented Hangfire authorization, but even though I'm logged in, currentUser is coming back as null. What could be the reason for this?


28 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Background job is an independent thread

    See https://abp.io/support/questions/7261/Best-practice-backgroud-job-in-a-microservices-environment#answer-3a12d477-e7fa-896b-00c0-38f06cdfc23e https://abp.io/support/questions/6417/AsyncBackgroundJob-injected-repositories-context-has-null-tenant-and-null-user

  • User Avatar
    0
    yunusemrecaglar created

    The messages you sent seem to be inside the thread. I'm getting a 401 error when trying to open the UI because the user information is empty

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    The background jobs can't get HTTP context, so no current user exists.

  • User Avatar
    0
    yunusemrecaglar created

    Even though I've logged in, I'm still getting a 401 error in the dashboard section.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, i misunderstood。

    Could you share your OnApplicationInitialization method code

  • User Avatar
    0
    yunusemrecaglar created
    public override void OnApplicationInitialization(ApplicationInitializationContext context)
    {
        var app = context.GetApplicationBuilder();
        var env = context.GetEnvironment();
        app.UseResponseCompression();
    
        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }
    
        app.UseAbpRequestLocalization();
        app.UseStaticFiles();
        app.UseAbpSecurityHeaders();
        app.UseRouting();
        app.UseCors();
        app.UseAuthentication();
    
        if (MultiTenancyConsts.IsEnabled)
        {
            app.UseMultiTenancy();
        }
    
        app.UseAuthorization();
        app.UseSwagger();
        app.UseAbpSwaggerUI(options =>
        {
            options.SwaggerEndpoint("/swagger/v1/swagger.json", "MYKGS API");
    
            var configuration = context.GetConfiguration();
            options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
        });
        app.UseAuditing();
        app.UseAbpSerilogEnrichers();
        app.UseUnitOfWork();
        app.UseConfiguredEndpoints(endpoints =>
        {
            endpoints.MapControllers();
            endpoints.MapHub<TerminalHub>("/terminal-hub", options =>
            {
                options.LongPolling.PollTimeout = TimeSpan.FromSeconds(30);
            });
        });
        app.UseHangfireDashboard("/hangfire", new DashboardOptions
        {
            AsyncAuthorization = new[] { new AbpHangfireAuthorizationFilter(false) }
        });
        //app.UseHangfireDashboard("/hangfire");
        RecurringJobs.ManageResignedAndExpiredJobs();
    }
    
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    should add to the request pipeline before the app.UseConfiguredEndpoints()

    See https://abp.io/docs/latest/framework/infrastructure/background-jobs/hangfire

  • User Avatar
    0
    yunusemrecaglar created
    app.UseConfiguredEndpoints(endpoints =>
     {
         endpoints.MapControllers();
         endpoints.MapHub<TerminalHub>("/terminal-hub", options =>
         {
             options.LongPolling.PollTimeout = TimeSpan.FromSeconds(30);
         });
     });
    

    This code is also in my code, I added it as you mentioned, but it's still the same.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    could you share a minimum reproducible project with me ? i will check ,it

    shiwei.liang@volosoft.com

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Similar issues https://github.com/abpframework/abp/issues/19632#issuecomment-2311275722

  • User Avatar
    0
    yunusemrecaglar created

    I couldn't resolve it. I'm still getting a 401 error. Is it possible to redirect to the login screen immediately after accessing Hangfire if a 401 error occurs, and then return to Hangfire afterwards?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Yes,

    here is the way https://abp.io/support/questions/5167/Hangfire-Authorization-Problem#answer-3a0b888e-b47a-d13d-c030-80ce3f046997

  • User Avatar
    0
    yunusemrecaglar created

    It worked locally, but I'm still getting a 401 error on the server.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Is there any error log?

  • User Avatar
    0
    yunusemrecaglar created

    401 error code

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    could you share the server logs?

  • User Avatar
    0
    yunusemrecaglar created

    2024-08-30 17:28:50.312 +03:00 [INF] Request starting HTTP/2 GET https://mykgsapi.erciyes.edu.tr/hangfire - - 2024-08-30 17:28:50.335 +03:00 [ERR] An exception was thrown while deserializing the token. Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted. ---> System.Security.Cryptography.CryptographicException: The key {***} was not found in the key ring. For more information go to http://aka.ms/dataprotectionwarning at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status) at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData) at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken) --- End of inner exception stack trace --- at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken) at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext) 2024-08-30 17:28:50.347 +03:00 [INF] Request finished HTTP/2 GET https://mykgsapi.erciyes.edu.tr/hangfire - - - 401 - - 35.4183ms 2024-08-30 17:28:50.943 +03:00 [INF] Executing ObjectResult, writing value of type 'System.String'. 2024-08-30 17:28:50.949 +03:00 [INF] Executed action MYKGS.Controllers.Terminals.TerminalController.GetStatus (MYKGS.HttpApi) in 901.7395ms 2024-08-30 17:28:50.949 +03:00 [INF] Executed endpoint 'MYKGS.Controllers.Terminals.TerminalController.GetStatus (MYKGS.HttpApi)' 2024-08-30 17:28:50.950 +03:00 [INF] Request finished HTTP/1.1 GET http://mykgsapi.erciyes.edu.tr/api/app/terminals/get-status?DATAS=RO9+kO+aSF5cpHUCFoH12UfChW8cHedRkFYPm7/VkcNn00z6kt22gMIrwobM1de8e4unSckmpswBQQVdCWEKPrQg3lSqdvTX7bmn3PUwin70nWp5sU/rw5cvtIxpDYaQ14Y2qResiujfFfVZhyxaPsJwkV7A+KiMlZ3Ysbx6JgUK6u6pH9jWGOcpKAT1tuT8 application/json - - 200 - text/plain;+charset=utf-8 1650.9087ms 2024-08-30 17:28:51.422 +03:00 [INF] Executed endpoint 'Health checks' 2024-08-30 17:28:51.426 +03:00 [INF] Request finished HTTP/1.1 GET https://mykgsapi.erciyes.edu.tr/health-status - - - 200 - application/json 2046.5687ms 2024-08-30 17:28:51.429 +03:00 [INF] Received HTTP response headers after 2114.8712ms - 200 2024-08-30 17:28:51.430 +03:00 [INF] End processing HTTP request after 2125.8605ms - 200

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    The antiforgery token could not be decrypted. ---> System.Security.Cryptography.CryptographicException: The key {*} was not found in the key ring. For more information go to http://aka.ms/dataprotectionwarning**

    See https://stackoverflow.com/questions/63316682/the-key-was-not-found-in-the-key-ring-unable-to-validate-token

  • User Avatar
    0
    yunusemrecaglar created

    2024-09-02 08:54:32.857 +03:00 [INF] Request starting HTTP/2 GET https://mykgsapi.erciyes.edu.tr/hangfire - - 2024-09-02 08:54:32.873 +03:00 [INF] Request finished HTTP/2 GET https://mykgsapi.erciyes.edu.tr/hangfire - - - 401 - - 16.1820ms

    It gives an error this way.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    we updated the document

    https://github.com/abpframework/abp/pull/20704

  • User Avatar
    0
    yunusemrecaglar created

    Hi,

    Why does it keep refreshing to the address in the screenshot above and not proceed to the next page?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    i guess the HTTP request haven't finished yet

  • User Avatar
    0
    yunusemrecaglar created

    2024-09-04 04:59:08.006 +03:00 [INF] The authorization response was successfully returned to 'https://mykgsapi.erciyes.edu.tr/signin-oidc' using the form post response mode: { "code": "[redacted]", "id_token": "[redacted]", "state": "CfDJ8KduvP9x88xFia4fRoEYie1UJ5TPbakFww6x35vNmlPG6jOwwK-xj4WIt4O6U3l5ua5P5R2eFs71d18vlGSzHJAM8xBpaiPc9HGQ-uXYi1WxwjVAcfI4rzY0YrAqNjFVrWBhBkNSSiDHuueAkdCx1alfXc0gtNgqPZXSaFERsh_89wbwD1BAb1CUb-zyWHvbxnKAmmbIgH2C9H2sB61uzrBhZFNBKQoTx8jZri_NJE0xT8R4fgC5QS_JvvwgqvDhp8vNi5nQ_Ikk2CXeRxwDTQAw4jWlT3ePUybsY0w1nVeWvl7K1PId1J-lL7aaAlLThA", "iss": "https://pbysidentity.erciyes.edu.tr/" }. 2024-09-04 04:59:08.007 +03:00 [INF] Executed action Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 80.671ms 2024-09-04 04:59:08.007 +03:00 [INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.008 +03:00 [INF] Request finished HTTP/2 GET https://pbysidentity.erciyes.edu.tr/connect/authorize?client_id=MYKGS_Swagger&redirect_uri=https%3A%2F%2Fmykgsapi.erciyes.edu.tr%2Fsignin-oidc&response_type=code%20id_token&scope=openid%20profile%20roles%20email%20phone%20MYKGS&response_mode=form_post&nonce=638610119479288919.NmIwYjIxMWEtYTFkYi00NjJiLTkzMWItNDc1OTc1NGU1OGQ0ZWYzNDk2NmQtOTUyZC00NzYyLTkxODQtY2U1NmNlMmZkNTBj&state=CfDJ8KduvP9x88xFia4fRoEYie1UJ5TPbakFww6x35vNmlPG6jOwwK-xj4WIt4O6U3l5ua5P5R2eFs71d18vlGSzHJAM8xBpaiPc9HGQ-uXYi1WxwjVAcfI4rzY0YrAqNjFVrWBhBkNSSiDHuueAkdCx1alfXc0gtNgqPZXSaFERsh_89wbwD1BAb1CUb-zyWHvbxnKAmmbIgH2C9H2sB61uzrBhZFNBKQoTx8jZri_NJE0xT8R4fgC5QS_JvvwgqvDhp8vNi5nQ_Ikk2CXeRxwDTQAw4jWlT3ePUybsY0w1nVeWvl7K1PId1J-lL7aaAlLThA&x-client-SKU=ID_NET6_0&x-client-ver=6.21.0.0 - - - 200 2186 text/html;charset=UTF-8 99.1682ms 2024-09-04 04:59:08.035 +03:00 [INF] Request starting HTTP/1.1 POST https://pbysidentity.erciyes.edu.tr/connect/token application/x-www-form-urlencoded 182 2024-09-04 04:59:08.036 +03:00 [INF] The request URI matched a server endpoint: "Token". 2024-09-04 04:59:08.036 +03:00 [INF] The token request was successfully extracted: { "client_id": "MYKGS_Swagger", "client_secret": "[redacted]", "code": "[redacted]", "grant_type": "authorization_code", "redirect_uri": "https://mykgsapi.erciyes.edu.tr/signin-oidc" }. 2024-09-04 04:59:08.053 +03:00 [INF] The token request was successfully validated. 2024-09-04 04:59:08.056 +03:00 [INF] Executing endpoint 'Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.056 +03:00 [INF] Route matched with {action = "Handle", controller = "Token", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] HandleAsync() on controller Volo.Abp.OpenIddict.Controllers.TokenController (Volo.Abp.OpenIddict.AspNetCore). 2024-09-04 04:59:08.056 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2024-09-04 04:59:08.065 +03:00 [INF] Executing SignInResult with authentication scheme (OpenIddict.Server.AspNetCore) and the following principal: System.Security.Claims.ClaimsPrincipal. 2024-09-04 04:59:08.083 +03:00 [INF] The token 'af726edf-2d54-76bd-de7b-3a14cceea1be' was successfully marked as redeemed. 2024-09-04 04:59:08.108 +03:00 [INF] The response was successfully returned as a JSON document: { "access_token": "[redacted]", "token_type": "Bearer", "expires_in": 1800, "scope": "openid profile roles email phone MYKGS", "id_token": "[redacted]" }. 2024-09-04 04:59:08.108 +03:00 [INF] Executed action Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 52.2398ms 2024-09-04 04:59:08.109 +03:00 [INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.125 +03:00 [INF] Request finished HTTP/1.1 POST https://pbysidentity.erciyes.edu.tr/connect/token application/x-www-form-urlencoded 182 - 200 2973 application/json;charset=UTF-8 89.9291ms 2024-09-04 04:59:08.126 +03:00 [INF] Request starting HTTP/1.1 GET https://pbysidentity.erciyes.edu.tr/connect/userinfo - - 2024-09-04 04:59:08.126 +03:00 [INF] The request URI matched a server endpoint: "Userinfo". 2024-09-04 04:59:08.126 +03:00 [INF] The userinfo request was successfully extracted: { "access_token": "[redacted]" }. 2024-09-04 04:59:08.131 +03:00 [INF] The userinfo request was successfully validated. 2024-09-04 04:59:08.135 +03:00 [INF] Executing endpoint 'Volo.Abp.OpenIddict.Controllers.UserInfoController.Userinfo (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.135 +03:00 [INF] Route matched with {action = "Userinfo", controller = "UserInfo", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Userinfo() on controller Volo.Abp.OpenIddict.Controllers.UserInfoController (Volo.Abp.OpenIddict.AspNetCore). 2024-09-04 04:59:08.135 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2024-09-04 04:59:08.151 +03:00 [INF] Executing OkObjectResult, writing value of type 'System.Collections.Generic.Dictionary2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. 2024-09-04 04:59:08.151 +03:00 [INF] Executed action Volo.Abp.OpenIddict.Controllers.UserInfoController.Userinfo (Volo.Abp.OpenIddict.AspNetCore) in 16.1706ms 2024-09-04 04:59:08.151 +03:00 [INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.UserInfoController.Userinfo (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.151 +03:00 [INF] Request finished HTTP/1.1 GET https://pbysidentity.erciyes.edu.tr/connect/userinfo - - - 200 - application/json;+charset=utf-8 25.7899ms 2024-09-04 04:59:08.174 +03:00 [INF] Request starting HTTP/2 GET https://pbysidentity.erciyes.edu.tr/connect/authorize?client_id=MYKGS_Swagger&redirect_uri=https%3A%2F%2Fmykgsapi.erciyes.edu.tr%2Fsignin-oidc&response_type=code%20id_token&scope=openid%20profile%20roles%20email%20phone%20MYKGS&response_mode=form_post&nonce=638610119481971758.YWY0ZjBmZmQtMWZlNC00ZjAzLTlmZjMtNTQwNTU0OTBlNzJkMGIzMDZkNWItNWI2YS00ZGJmLTkwMzUtOGJmZmIwZjQ4MTUx&state=CfDJ8KduvP9x88xFia4fRoEYie1uo_i7Yr2ZyDVVC7_YH_SRQOTWX4CEcCRlLN5A-Q9f-2mJsfqXX7xiOw5xY8TbDdGAxjDJqxDbf4zKymRa1CUu1240_qIcAufLXrRpFz7M4d4HH1eybXT8gAOGjDiNCxfT8BqKoyky342YQMkGQFpkSjagoOX2VoM4kBNmrymxLjKKjDn7nPqAXb3IFFTvHA4Hi1FNzUajnakUvNRLn7e6Wg9Grf0PVvVzlKT9c3BF5-nRiwrppj7rWfWhydir4Oxou4g_UzhIduB2JB3IXTdPmi1ZLx7kPQ0a-QbUahQGKg&x-client-SKU=ID_NET6_0&x-client-ver=6.21.0.0 - - 2024-09-04 04:59:08.175 +03:00 [INF] The request URI matched a server endpoint: "Authorization". 2024-09-04 04:59:08.176 +03:00 [INF] The authorization request was successfully extracted: { "client_id": "MYKGS_Swagger", "redirect_uri": "https://mykgsapi.erciyes.edu.tr/signin-oidc", "response_type": "code id_token", "scope": "openid profile roles email phone MYKGS", "response_mode": "form_post", "nonce": "638610119481971758.YWY0ZjBmZmQtMWZlNC00ZjAzLTlmZjMtNTQwNTU0OTBlNzJkMGIzMDZkNWItNWI2YS00ZGJmLTkwMzUtOGJmZmIwZjQ4MTUx", "state": "CfDJ8KduvP9x88xFia4fRoEYie1uo_i7Yr2ZyDVVC7_YH_SRQOTWX4CEcCRlLN5A-Q9f-2mJsfqXX7xiOw5xY8TbDdGAxjDJqxDbf4zKymRa1CUu1240_qIcAufLXrRpFz7M4d4HH1eybXT8gAOGjDiNCxfT8BqKoyky342YQMkGQFpkSjagoOX2VoM4kBNmrymxLjKKjDn7nPqAXb3IFFTvHA4Hi1FNzUajnakUvNRLn7e6Wg9Grf0PVvVzlKT9c3BF5-nRiwrppj7rWfWhydir4Oxou4g_UzhIduB2JB3IXTdPmi1ZLx7kPQ0a-QbUahQGKg", "x-client-SKU": "ID_NET6_0", "x-client-ver": "6.21.0.0" }. 2024-09-04 04:59:08.193 +03:00 [INF] The authorization request was successfully validated. 2024-09-04 04:59:08.197 +03:00 [INF] Executing endpoint 'Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.197 +03:00 [INF] Route matched with {action = "Handle", controller = "Authorize", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] HandleAsync() on controller Volo.Abp.OpenIddict.Controllers.AuthorizeController (Volo.Abp.OpenIddict.AspNetCore). 2024-09-04 04:59:08.197 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2024-09-04 04:59:08.234 +03:00 [INF] Executing SignInResult with authentication scheme (OpenIddict.Server.AspNetCore) and the following principal: System.Security.Claims.ClaimsPrincipal. 2024-09-04 04:59:08.282 +03:00 [INF] The authorization response was successfully returned to 'https://mykgsapi.erciyes.edu.tr/signin-oidc' using the form post response mode: { "code": "[redacted]", "id_token": "[redacted]", "state": "CfDJ8KduvP9x88xFia4fRoEYie1uo_i7Yr2ZyDVVC7_YH_SRQOTWX4CEcCRlLN5A-Q9f-2mJsfqXX7xiOw5xY8TbDdGAxjDJqxDbf4zKymRa1CUu1240_qIcAufLXrRpFz7M4d4HH1eybXT8gAOGjDiNCxfT8BqKoyky342YQMkGQFpkSjagoOX2VoM4kBNmrymxLjKKjDn7nPqAXb3IFFTvHA4Hi1FNzUajnakUvNRLn7e6Wg9Grf0PVvVzlKT9c3BF5-nRiwrppj7rWfWhydir4Oxou4g_UzhIduB2JB3IXTdPmi1ZLx7kPQ0a-QbUahQGKg", "iss": "https://pbysidentity.erciyes.edu.tr/" }. 2024-09-04 04:59:08.282 +03:00 [INF] Executed action Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 84.8149ms 2024-09-04 04:59:08.282 +03:00 [INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.283 +03:00 [INF] Request finished HTTP/2 GET https://pbysidentity.erciyes.edu.tr/connect/authorize?client_id=MYKGS_Swagger&redirect_uri=https%3A%2F%2Fmykgsapi.erciyes.edu.tr%2Fsignin-oidc&response_type=code%20id_token&scope=openid%20profile%20roles%20email%20phone%20MYKGS&response_mode=form_post&nonce=638610119481971758.YWY0ZjBmZmQtMWZlNC00ZjAzLTlmZjMtNTQwNTU0OTBlNzJkMGIzMDZkNWItNWI2YS00ZGJmLTkwMzUtOGJmZmIwZjQ4MTUx&state=CfDJ8KduvP9x88xFia4fRoEYie1uo_i7Yr2ZyDVVC7_YH_SRQOTWX4CEcCRlLN5A-Q9f-2mJsfqXX7xiOw5xY8TbDdGAxjDJqxDbf4zKymRa1CUu1240_qIcAufLXrRpFz7M4d4HH1eybXT8gAOGjDiNCxfT8BqKoyky342YQMkGQFpkSjagoOX2VoM4kBNmrymxLjKKjDn7nPqAXb3IFFTvHA4Hi1FNzUajnakUvNRLn7e6Wg9Grf0PVvVzlKT9c3BF5-nRiwrppj7rWfWhydir4Oxou4g_UzhIduB2JB3IXTdPmi1ZLx7kPQ0a-QbUahQGKg&x-client-SKU=ID_NET6_0&x-client-ver=6.21.0.0 - - - 200 2186 text/html;charset=UTF-8 109.4120ms 2024-09-04 04:59:08.313 +03:00 [INF] Request starting HTTP/1.1 POST https://pbysidentity.erciyes.edu.tr/connect/token application/x-www-form-urlencoded 182 2024-09-04 04:59:08.314 +03:00 [INF] The request URI matched a server endpoint: "Token". 2024-09-04 04:59:08.314 +03:00 [INF] The token request was successfully extracted: { "client_id": "MYKGS_Swagger", "client_secret": "[redacted]", "code": "[redacted]", "grant_type": "authorization_code", "redirect_uri": "https://mykgsapi.erciyes.edu.tr/signin-oidc" }. 2024-09-04 04:59:08.331 +03:00 [INF] The token request was successfully validated. 2024-09-04 04:59:08.333 +03:00 [INF] Executing endpoint 'Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.333 +03:00 [INF] Route matched with {action = "Handle", controller = "Token", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] HandleAsync() on controller Volo.Abp.OpenIddict.Controllers.TokenController (Volo.Abp.OpenIddict.AspNetCore). 2024-09-04 04:59:08.333 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2024-09-04 04:59:08.343 +03:00 [INF] Executing SignInResult with authentication scheme (OpenIddict.Server.AspNetCore) and the following principal: System.Security.Claims.ClaimsPrincipal. 2024-09-04 04:59:08.360 +03:00 [INF] The token '951a4508-201b-27cf-fb24-3a14cceea2cc' was successfully marked as redeemed. 2024-09-04 04:59:08.383 +03:00 [INF] The response was successfully returned as a JSON document: { "access_token": "[redacted]", "token_type": "Bearer", "expires_in": 1800, "scope": "openid profile roles email phone MYKGS", "id_token": "[redacted]" }. 2024-09-04 04:59:08.384 +03:00 [INF] Executed action Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 50.2818ms 2024-09-04 04:59:08.384 +03:00 [INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.398 +03:00 [INF] Request finished HTTP/1.1 POST https://pbysidentity.erciyes.edu.tr/connect/token application/x-www-form-urlencoded 182 - 200 2973 application/json;charset=UTF-8 85.4596ms 2024-09-04 04:59:08.398 +03:00 [INF] Request starting HTTP/1.1 GET https://pbysidentity.erciyes.edu.tr/connect/userinfo - - 2024-09-04 04:59:08.399 +03:00 [INF] The request URI matched a server endpoint: "Userinfo". 2024-09-04 04:59:08.399 +03:00 [INF] The userinfo request was successfully extracted: { "access_token": "[redacted]" }. 2024-09-04 04:59:08.403 +03:00 [INF] The userinfo request was successfully validated. 2024-09-04 04:59:08.406 +03:00 [INF] Executing endpoint 'Volo.Abp.OpenIddict.Controllers.UserInfoController.Userinfo (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.406 +03:00 [INF] Route matched with {action = "Userinfo", controller = "UserInfo", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Userinfo() on controller Volo.Abp.OpenIddict.Controllers.UserInfoController (Volo.Abp.OpenIddict.AspNetCore). 2024-09-04 04:59:08.406 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2024-09-04 04:59:08.420 +03:00 [INF] Executing OkObjectResult, writing value of type 'System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. 2024-09-04 04:59:08.420 +03:00 [INF] Executed action Volo.Abp.OpenIddict.Controllers.UserInfoController.Userinfo (Volo.Abp.OpenIddict.AspNetCore) in 14.4321ms 2024-09-04 04:59:08.420 +03:00 [INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.UserInfoController.Userinfo (Volo.Abp.OpenIddict.AspNetCore)' 2024-09-04 04:59:08.421 +03:00 [INF] Request finished HTTP/1.1 GET https://pbysidentity.erciyes.edu.tr/connect/userinfo - - - 200 - application/json;+charset=utf-8 22.2417ms 2024-09-04 04:59:08.457 +03:00 [INF] Request starting HTTP/2 GET https://pbysidentity.erciyes.edu.tr/connect/authorize?client_id=MYKGS_Swagger&redirect_uri=https%3A%2F%2Fmykgsapi.erciyes.edu.tr%2Fsignin-oidc&response_type=code%20id_token&scope=openid%20profile%20roles%20email%20phone%20MYKGS&response_mode=form_post&nonce=638610119484705982.YzZiYmE4OGQtYjIzZS00MDNkLWJmMjctZDI3YTZkZDNkZTAwMDQ5NjhmMmQtYjQ5My00MDRjLTgxNTctZDU1M2E3OWY4ZGNi&state=CfDJ8KduvP9x88xFia4fRoEYie34rdCiHsh0aKpejOOLkh_gKiSMO0YmCmt8OqnsHL_W1NRFgT9gejFK2S35njxh79YGVrDTmGtUvPyh6WouCZaYseaVpfprMhJ91Aw921MzpUY7SJWjQ_WzhkOwNgZuJJhFdNQeTFLi8gjd-nQ6LRa4dWGYJjp_3dhhbt6sdorJY346NvHh8ZrFEbIVfvOs0tR0VmeyUat4WIFctahY0CFvIF8rzDVxSAgPh4d_gMqXLurmzHw-ouJulPOnXt7bKF0dCsq_BIolGFSvOQ72w2alZfFu8XgCbjF3VRAene2oTg&x-client-SKU=ID_NET6_0&x-client-ver=6.21.0.0 - - 2024-09-04 04:59:08.458 +03:00 [INF] The request URI matched a server endpoint: "Authorization".

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

  • User Avatar
    0
    yunusemrecaglar created

    Yes, it keeps going to this address, and the encrypted part on the right side keeps showing different characters.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09