IdentityServer / IdentityServer4

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://identityserver.io
Apache License 2.0
9.23k stars 4.02k forks source link

Profile service returned incorrect subject value #3405

Closed mayankgaur closed 5 years ago

mayankgaur commented 5 years ago

Once I login, then I am receiving an issue of:- Profile service returned incorrect subject value. Please find log here 2019-07-09 19:08:15.094 +05:30 [INF] Request starting HTTP/1.1 DEBUG http://localhost:5000/ 0 2019-07-09 19:08:15.094 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/
2019-07-09 19:08:15.205 +05:30 [INF] Request finished in 204.3629ms 200 2019-07-09 19:08:15.267 +05:30 [INF] AuthenticationScheme: idsrv was successfully authenticated. 2019-07-09 19:08:15.289 +05:30 [INF] AuthenticationScheme: idsrv was successfully authenticated. 2019-07-09 19:08:15.882 +05:30 [INF] Executing action method IdentityServer4.Quickstart.UI.HomeController.Index (IdentityServer) with arguments (null) - ModelState is "Valid" 2019-07-09 19:08:18.254 +05:30 [INF] Request starting HTTP/1.1 POST http://localhost:5000/Account/Logout application/x-www-form-urlencoded 235 2019-07-09 19:08:18.277 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:18.314 +05:30 [INF] AuthenticationScheme: idsrv was successfully authenticated. 2019-07-09 19:08:18.339 +05:30 [INF] AuthenticationScheme: idsrv was successfully authenticated. 2019-07-09 19:08:20.850 +05:30 [INF] Executing action method IdentityServer4.Quickstart.UI.AccountController.Logout (IdentityServer) with arguments (["IdentityServer4.Quickstart.UI.LogoutInputModel"]) - ModelState is "Valid" 2019-07-09 19:08:20.950 +05:30 [INF] AuthenticationScheme: idsrv signed out. 2019-07-09 19:08:22.088 +05:30 [INF] Executing ViewResult, running view at path /Views/Account/LoggedOut.cshtml. 2019-07-09 19:08:22.098 +05:30 [INF] Executing ViewResult, running view at path /Views/Home/Index.cshtml. 2019-07-09 19:08:22.483 +05:30 [INF] Executed action IdentityServer4.Quickstart.UI.AccountController.Logout (IdentityServer) in 4071.4733ms 2019-07-09 19:08:22.485 +05:30 [INF] Executed action IdentityServer4.Quickstart.UI.HomeController.Index (IdentityServer) in 6614.3364ms 2019-07-09 19:08:22.539 +05:30 [INF] Request finished in 7500.0585ms 200 text/html; charset=utf-8 2019-07-09 19:08:22.541 +05:30 [INF] Request finished in 4257.978ms 200 text/html; charset=utf-8 2019-07-09 19:08:22.632 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/connect/endsession/callback?endSessionId=CfDJ8HP8ZhePRrdJtPxAPvRl1X2BAbNJl7pMZbmWt_6M4-WIwn0rPU2D3NdZZR5E0jMyNpMNmR9Jrw3_k6BEElNa7M6kVPOmjejL1dEncjwktmCLFITUMKoTDFyfYRVzlUkrJvlBrMjrD_pUWS11_I5NQByFL_sHplizy8OxaswE7mroDRx4PEHwkLupWQK56Wk9q1dWq8QtLnuYOuQ4fSvZHk9IdG0dqvM_Dl6Dcqvib5HCcRzm6R5jfsdH4QkZhUnuAtEIaSGLBOZUSjGYD-wXVoYgGwSsWDPTrqrFncBZMup5
2019-07-09 19:08:22.681 +05:30 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.EndSessionCallbackEndpoint for /connect/endsession/callback 2019-07-09 19:08:23.142 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:23.699 +05:30 [INF] Executed DbCommand (14ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."AbsoluteRefreshTokenLifetime", x."AccessTokenLifetime", x."AccessTokenType", x."AllowAccessTokensViaBrowser", x."AllowOfflineAccess", x."AllowPlainTextPkce", x."AllowRememberConsent", x."AlwaysIncludeUserClaimsInIdToken", x."AlwaysSendClientClaims", x."AuthorizationCodeLifetime", x."BackChannelLogoutSessionRequired", x."BackChannelLogoutUri", x."ClientClaimsPrefix", x."ClientId", x."ClientName", x."ClientUri", x."ConsentLifetime", x."Description", x."EnableLocalLogin", x."Enabled", x."FrontChannelLogoutSessionRequired", x."FrontChannelLogoutUri", x."IdentityTokenLifetime", x."IncludeJwtId", x."LogoUri", x."PairWiseSubjectSalt", x."ProtocolType", x."RefreshTokenExpiration", x."RefreshTokenUsage", x."RequireClientSecret", x."RequireConsent", x."RequirePkce", x."SlidingRefreshTokenLifetime", x."UpdateAccessTokenClaimsOnRefresh" FROM "Clients" AS x WHERE x."ClientId" = @__clientId_0 ORDER BY x."Id" LIMIT 1 2019-07-09 19:08:23.826 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedGrantTypes"."Id", "x.AllowedGrantTypes"."ClientId", "x.AllowedGrantTypes"."GrantType" FROM "ClientGrantTypes" AS "x.AllowedGrantTypes" INNER JOIN ( SELECT x0."Id" FROM "Clients" AS x0 WHERE x0."ClientId" = @clientId_0 ORDER BY x0."Id" LIMIT 1 ) AS t ON "x.AllowedGrantTypes"."ClientId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:23.881 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.RedirectUris"."Id", "x.RedirectUris"."ClientId", "x.RedirectUris"."RedirectUri" FROM "ClientRedirectUris" AS "x.RedirectUris" INNER JOIN ( SELECT x1."Id" FROM "Clients" AS x1 WHERE x1."ClientId" = @clientId_0 ORDER BY x1."Id" LIMIT 1 ) AS t0 ON "x.RedirectUris"."ClientId" = t0."Id" ORDER BY t0."Id" 2019-07-09 19:08:23.896 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.PostLogoutRedirectUris"."Id", "x.PostLogoutRedirectUris"."ClientId", "x.PostLogoutRedirectUris"."PostLogoutRedirectUri" FROM "ClientPostLogoutRedirectUris" AS "x.PostLogoutRedirectUris" INNER JOIN ( SELECT x2."Id" FROM "Clients" AS x2 WHERE x2."ClientId" = @__clientId_0 ORDER BY x2."Id" LIMIT 1 ) AS t1 ON "x.PostLogoutRedirectUris"."ClientId" = t1."Id" ORDER BY t1."Id" 2019-07-09 19:08:23.912 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedScopes"."Id", "x.AllowedScopes"."ClientId", "x.AllowedScopes"."Scope" FROM "ClientScopes" AS "x.AllowedScopes" INNER JOIN ( SELECT x3."Id" FROM "Clients" AS x3 WHERE x3."ClientId" = @clientId_0 ORDER BY x3."Id" LIMIT 1 ) AS t2 ON "x.AllowedScopes"."ClientId" = t2."Id" ORDER BY t2."Id" 2019-07-09 19:08:23.926 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.ClientSecrets"."Id", "x.ClientSecrets"."ClientId", "x.ClientSecrets"."Description", "x.ClientSecrets"."Expiration", "x.ClientSecrets"."Type", "x.ClientSecrets"."Value" FROM "ClientSecrets" AS "x.ClientSecrets" INNER JOIN ( SELECT x4."Id" FROM "Clients" AS x4 WHERE x4."ClientId" = @clientId_0 ORDER BY x4."Id" LIMIT 1 ) AS t3 ON "x.ClientSecrets"."ClientId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:23.949 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Claims"."Id", "x.Claims"."ClientId", "x.Claims"."Type", "x.Claims"."Value" FROM "ClientClaims" AS "x.Claims" INNER JOIN ( SELECT x5."Id" FROM "Clients" AS x5 WHERE x5."ClientId" = @__clientId_0 ORDER BY x5."Id" LIMIT 1 ) AS t4 ON "x.Claims"."ClientId" = t4."Id" ORDER BY t4."Id" 2019-07-09 19:08:23.962 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.IdentityProviderRestrictions"."Id", "x.IdentityProviderRestrictions"."ClientId", "x.IdentityProviderRestrictions"."Provider" FROM "ClientIdPRestrictions" AS "x.IdentityProviderRestrictions" INNER JOIN ( SELECT x6."Id" FROM "Clients" AS x6 WHERE x6."ClientId" = @clientId_0 ORDER BY x6."Id" LIMIT 1 ) AS t5 ON "x.IdentityProviderRestrictions"."ClientId" = t5."Id" ORDER BY t5."Id" 2019-07-09 19:08:23.974 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Id", "x.AllowedCorsOrigins"."ClientId", "x.AllowedCorsOrigins"."Origin" FROM "ClientCorsOrigins" AS "x.AllowedCorsOrigins" INNER JOIN ( SELECT x7."Id" FROM "Clients" AS x7 WHERE x7."ClientId" = @clientId_0 ORDER BY x7."Id" LIMIT 1 ) AS t6 ON "x.AllowedCorsOrigins"."ClientId" = t6."Id" ORDER BY t6."Id" 2019-07-09 19:08:23.992 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Properties"."Id", "x.Properties"."ClientId", "x.Properties"."Key", "x.Properties"."Value" FROM "ClientProperties" AS "x.Properties" INNER JOIN ( SELECT x8."Id" FROM "Clients" AS x8 WHERE x8."ClientId" = @__clientId_0 ORDER BY x8."Id" LIMIT 1 ) AS t7 ON "x.Properties"."ClientId" = t7."Id" ORDER BY t7."Id" 2019-07-09 19:08:24.413 +05:30 [INF] Successful signout callback. 2019-07-09 19:08:24.428 +05:30 [INF] Request finished in 1794.5959ms 200 text/html; charset=UTF-8 2019-07-09 19:08:24.471 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/favicon.ico
2019-07-09 19:08:24.479 +05:30 [INF] Sending file. Request path: '/favicon.ico'. Physical path: 'E:\AuthSample_Latest\AuthSample\src\QuickstartIdentityServer\wwwroot\favicon.ico' 2019-07-09 19:08:24.508 +05:30 [INF] Request finished in 42.9134ms 200 image/x-icon 2019-07-09 19:08:35.026 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/.well-known/openid-configuration
2019-07-09 19:08:35.035 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:35.046 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:35.093 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Origin" FROM "Clients" AS x INNER JOIN "ClientCorsOrigins" AS "x.AllowedCorsOrigins" ON x."Id" = "x.AllowedCorsOrigins"."ClientId" 2019-07-09 19:08:35.100 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:35.106 +05:30 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2019-07-09 19:08:35.156 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."Description", x."DisplayName", x."Emphasize", x."Enabled", x."Name", x."Required", x."ShowInDiscoveryDocument" FROM "IdentityResources" AS x ORDER BY x."Id" 2019-07-09 19:08:35.173 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.UserClaims"."Id", "x.UserClaims"."IdentityResourceId", "x.UserClaims"."Type" FROM "IdentityClaims" AS "x.UserClaims" INNER JOIN ( SELECT x0."Id" FROM "IdentityResources" AS x0 ) AS t ON "x.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.238 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."Description", x."DisplayName", x."Enabled", x."Name" FROM "ApiResources" AS x ORDER BY x."Id" 2019-07-09 19:08:35.265 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Secrets"."Id", "x.Secrets"."ApiResourceId", "x.Secrets"."Description", "x.Secrets"."Expiration", "x.Secrets"."Type", "x.Secrets"."Value" FROM "ApiSecrets" AS "x.Secrets" INNER JOIN ( SELECT x0."Id" FROM "ApiResources" AS x0 ) AS t ON "x.Secrets"."ApiResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.278 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Scopes"."Id", "x.Scopes"."ApiResourceId", "x.Scopes"."Description", "x.Scopes"."DisplayName", "x.Scopes"."Emphasize", "x.Scopes"."Name", "x.Scopes"."Required", "x.Scopes"."ShowInDiscoveryDocument" FROM "ApiScopes" AS "x.Scopes" INNER JOIN ( SELECT x1."Id" FROM "ApiResources" AS x1 ) AS t0 ON "x.Scopes"."ApiResourceId" = t0."Id" ORDER BY t0."Id", "x.Scopes"."Id" 2019-07-09 19:08:35.300 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Scopes.UserClaims"."Id", "x.Scopes.UserClaims"."ApiScopeId", "x.Scopes.UserClaims"."Type" FROM "ApiScopeClaims" AS "x.Scopes.UserClaims" INNER JOIN ( SELECT DISTINCT "x.Scopes0"."Id", t1."Id" AS "Id0" FROM "ApiScopes" AS "x.Scopes0" INNER JOIN ( SELECT x2."Id" FROM "ApiResources" AS x2 ) AS t1 ON "x.Scopes0"."ApiResourceId" = t1."Id" ) AS t2 ON "x.Scopes.UserClaims"."ApiScopeId" = t2."Id" ORDER BY t2."Id0", t2."Id" 2019-07-09 19:08:35.314 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.UserClaims"."Id", "x.UserClaims"."ApiResourceId", "x.UserClaims"."Type" FROM "ApiClaims" AS "x.UserClaims" INNER JOIN ( SELECT x3."Id" FROM "ApiResources" AS x3 ) AS t3 ON "x.UserClaims"."ApiResourceId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:35.474 +05:30 [INF] Request finished in 446.8288ms 200 application/json; charset=UTF-8 2019-07-09 19:08:35.489 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/connect/authorize?client_id=angular_spa&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fauth-callback&response_type=id_token%20token&scope=openid&state=aa24219c96014e22a2960253643577e8&nonce=bff8a90b283c41b78aa610744c2a1531
2019-07-09 19:08:35.497 +05:30 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize 2019-07-09 19:08:35.522 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:35.533 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@
clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."AbsoluteRefreshTokenLifetime", x."AccessTokenLifetime", x."AccessTokenType", x."AllowAccessTokensViaBrowser", x."AllowOfflineAccess", x."AllowPlainTextPkce", x."AllowRememberConsent", x."AlwaysIncludeUserClaimsInIdToken", x."AlwaysSendClientClaims", x."AuthorizationCodeLifetime", x."BackChannelLogoutSessionRequired", x."BackChannelLogoutUri", x."ClientClaimsPrefix", x."ClientId", x."ClientName", x."ClientUri", x."ConsentLifetime", x."Description", x."EnableLocalLogin", x."Enabled", x."FrontChannelLogoutSessionRequired", x."FrontChannelLogoutUri", x."IdentityTokenLifetime", x."IncludeJwtId", x."LogoUri", x."PairWiseSubjectSalt", x."ProtocolType", x."RefreshTokenExpiration", x."RefreshTokenUsage", x."RequireClientSecret", x."RequireConsent", x."RequirePkce", x."SlidingRefreshTokenLifetime", x."UpdateAccessTokenClaimsOnRefresh" FROM "Clients" AS x WHERE x."ClientId" = @clientId_0 ORDER BY x."Id" LIMIT 1 2019-07-09 19:08:35.540 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedGrantTypes"."Id", "x.AllowedGrantTypes"."ClientId", "x.AllowedGrantTypes"."GrantType" FROM "ClientGrantTypes" AS "x.AllowedGrantTypes" INNER JOIN ( SELECT x0."Id" FROM "Clients" AS x0 WHERE x0."ClientId" = @clientId_0 ORDER BY x0."Id" LIMIT 1 ) AS t ON "x.AllowedGrantTypes"."ClientId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.547 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.RedirectUris"."Id", "x.RedirectUris"."ClientId", "x.RedirectUris"."RedirectUri" FROM "ClientRedirectUris" AS "x.RedirectUris" INNER JOIN ( SELECT x1."Id" FROM "Clients" AS x1 WHERE x1."ClientId" = @__clientId_0 ORDER BY x1."Id" LIMIT 1 ) AS t0 ON "x.RedirectUris"."ClientId" = t0."Id" ORDER BY t0."Id" 2019-07-09 19:08:35.554 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.PostLogoutRedirectUris"."Id", "x.PostLogoutRedirectUris"."ClientId", "x.PostLogoutRedirectUris"."PostLogoutRedirectUri" FROM "ClientPostLogoutRedirectUris" AS "x.PostLogoutRedirectUris" INNER JOIN ( SELECT x2."Id" FROM "Clients" AS x2 WHERE x2."ClientId" = @clientId_0 ORDER BY x2."Id" LIMIT 1 ) AS t1 ON "x.PostLogoutRedirectUris"."ClientId" = t1."Id" ORDER BY t1."Id" 2019-07-09 19:08:35.560 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedScopes"."Id", "x.AllowedScopes"."ClientId", "x.AllowedScopes"."Scope" FROM "ClientScopes" AS "x.AllowedScopes" INNER JOIN ( SELECT x3."Id" FROM "Clients" AS x3 WHERE x3."ClientId" = @clientId_0 ORDER BY x3."Id" LIMIT 1 ) AS t2 ON "x.AllowedScopes"."ClientId" = t2."Id" ORDER BY t2."Id" 2019-07-09 19:08:35.566 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.ClientSecrets"."Id", "x.ClientSecrets"."ClientId", "x.ClientSecrets"."Description", "x.ClientSecrets"."Expiration", "x.ClientSecrets"."Type", "x.ClientSecrets"."Value" FROM "ClientSecrets" AS "x.ClientSecrets" INNER JOIN ( SELECT x4."Id" FROM "Clients" AS x4 WHERE x4."ClientId" = @__clientId_0 ORDER BY x4."Id" LIMIT 1 ) AS t3 ON "x.ClientSecrets"."ClientId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:35.574 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Claims"."Id", "x.Claims"."ClientId", "x.Claims"."Type", "x.Claims"."Value" FROM "ClientClaims" AS "x.Claims" INNER JOIN ( SELECT x5."Id" FROM "Clients" AS x5 WHERE x5."ClientId" = @clientId_0 ORDER BY x5."Id" LIMIT 1 ) AS t4 ON "x.Claims"."ClientId" = t4."Id" ORDER BY t4."Id" 2019-07-09 19:08:35.581 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.IdentityProviderRestrictions"."Id", "x.IdentityProviderRestrictions"."ClientId", "x.IdentityProviderRestrictions"."Provider" FROM "ClientIdPRestrictions" AS "x.IdentityProviderRestrictions" INNER JOIN ( SELECT x6."Id" FROM "Clients" AS x6 WHERE x6."ClientId" = @clientId_0 ORDER BY x6."Id" LIMIT 1 ) AS t5 ON "x.IdentityProviderRestrictions"."ClientId" = t5."Id" ORDER BY t5."Id" 2019-07-09 19:08:35.587 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Id", "x.AllowedCorsOrigins"."ClientId", "x.AllowedCorsOrigins"."Origin" FROM "ClientCorsOrigins" AS "x.AllowedCorsOrigins" INNER JOIN ( SELECT x7."Id" FROM "Clients" AS x7 WHERE x7."ClientId" = @__clientId_0 ORDER BY x7."Id" LIMIT 1 ) AS t6 ON "x.AllowedCorsOrigins"."ClientId" = t6."Id" ORDER BY t6."Id" 2019-07-09 19:08:35.594 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Properties"."Id", "x.Properties"."ClientId", "x.Properties"."Key", "x.Properties"."Value" FROM "ClientProperties" AS "x.Properties" INNER JOIN ( SELECT x8."Id" FROM "Clients" AS x8 WHERE x8."ClientId" = @clientId_0 ORDER BY x8."Id" LIMIT 1 ) AS t7 ON "x.Properties"."ClientId" = t7."Id" ORDER BY t7."Id" 2019-07-09 19:08:35.649 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource"."Id", "identityResource"."Description", "identityResource"."DisplayName", "identityResource"."Emphasize", "identityResource"."Enabled", "identityResource"."Name", "identityResource"."Required", "identityResource"."ShowInDiscoveryDocument" FROM "IdentityResources" AS "identityResource" WHERE "identityResource"."Name" IN ('openid') ORDER BY "identityResource"."Id" 2019-07-09 19:08:35.658 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource.UserClaims"."Id", "identityResource.UserClaims"."IdentityResourceId", "identityResource.UserClaims"."Type" FROM "IdentityClaims" AS "identityResource.UserClaims" INNER JOIN ( SELECT "identityResource0"."Id" FROM "IdentityResources" AS "identityResource0" WHERE "identityResource0"."Name" IN ('openid') ) AS t ON "identityResource.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.706 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT api."Id", api."Description", api."DisplayName", api."Enabled", api."Name" FROM "ApiResources" AS api WHERE EXISTS ( SELECT 1 FROM "ApiScopes" AS x WHERE x."Name" IN ('openid') AND (api."Id" = x."ApiResourceId")) ORDER BY api."Id" 2019-07-09 19:08:35.720 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource"."Id", "identityResource"."Description", "identityResource"."DisplayName", "identityResource"."Emphasize", "identityResource"."Enabled", "identityResource"."Name", "identityResource"."Required", "identityResource"."ShowInDiscoveryDocument" FROM "IdentityResources" AS "identityResource" WHERE "identityResource"."Name" IN ('openid') ORDER BY "identityResource"."Id" 2019-07-09 19:08:35.728 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource.UserClaims"."Id", "identityResource.UserClaims"."IdentityResourceId", "identityResource.UserClaims"."Type" FROM "IdentityClaims" AS "identityResource.UserClaims" INNER JOIN ( SELECT "identityResource0"."Id" FROM "IdentityResources" AS "identityResource0" WHERE "identityResource0"."Name" IN ('openid') ) AS t ON "identityResource.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.739 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT api."Id", api."Description", api."DisplayName", api."Enabled", api."Name" FROM "ApiResources" AS api WHERE EXISTS ( SELECT 1 FROM "ApiScopes" AS x WHERE x."Name" IN ('openid') AND (api."Id" = x."ApiResourceId")) ORDER BY api."Id" 2019-07-09 19:08:35.766 +05:30 [INF] ValidatedAuthorizeRequest { "ClientId": "angular_spa", "ClientName": "angular_spa", "RedirectUri": "http://localhost:4200/auth-callback", "AllowedRedirectUris": [ "http://192.192.8.195:4200/auth-callback", "http://localhost:4200/auth-callback" ], "SubjectId": "anonymous", "ResponseType": "id_token token", "ResponseMode": "fragment", "GrantType": "implicit", "RequestedScopes": "openid", "State": "aa24219c96014e22a2960253643577e8", "Nonce": "bff8a90b283c41b78aa610744c2a1531", "Raw": { "client_id": "angular_spa", "redirect_uri": "http://localhost:4200/auth-callback", "response_type": "id_token token", "scope": "openid", "state": "aa24219c96014e22a2960253643577e8", "nonce": "bff8a90b283c41b78aa610744c2a1531" } } 2019-07-09 19:08:35.778 +05:30 [INF] Showing login: User is not authenticated 2019-07-09 19:08:35.789 +05:30 [INF] Request finished in 299.4809ms 302 2019-07-09 19:08:35.796 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/account/login?returnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dangular_spa%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%252Fauth-callback%26response_type%3Did_token%2520token%26scope%3Dopenid%26state%3Daa24219c96014e22a2960253643577e8%26nonce%3Dbff8a90b283c41b78aa610744c2a1531
2019-07-09 19:08:35.807 +05:30 [INF] Executing action method IdentityServer4.Quickstart.UI.AccountController.Login (IdentityServer) with arguments (["/connect/authorize/callback?client_id=angular_spa&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fauth-callback&response_type=id_token%20token&scope=openid&state=aa24219c96014e22a2960253643577e8&nonce=bff8a90b283c41b78aa610744c2a1531"]) - ModelState is "Valid" 2019-07-09 19:08:35.828 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:35.836 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."AbsoluteRefreshTokenLifetime", x."AccessTokenLifetime", x."AccessTokenType", x."AllowAccessTokensViaBrowser", x."AllowOfflineAccess", x."AllowPlainTextPkce", x."AllowRememberConsent", x."AlwaysIncludeUserClaimsInIdToken", x."AlwaysSendClientClaims", x."AuthorizationCodeLifetime", x."BackChannelLogoutSessionRequired", x."BackChannelLogoutUri", x."ClientClaimsPrefix", x."ClientId", x."ClientName", x."ClientUri", x."ConsentLifetime", x."Description", x."EnableLocalLogin", x."Enabled", x."FrontChannelLogoutSessionRequired", x."FrontChannelLogoutUri", x."IdentityTokenLifetime", x."IncludeJwtId", x."LogoUri", x."PairWiseSubjectSalt", x."ProtocolType", x."RefreshTokenExpiration", x."RefreshTokenUsage", x."RequireClientSecret", x."RequireConsent", x."RequirePkce", x."SlidingRefreshTokenLifetime", x."UpdateAccessTokenClaimsOnRefresh" FROM "Clients" AS x WHERE x."ClientId" = @
clientId_0 ORDER BY x."Id" LIMIT 1 2019-07-09 19:08:35.844 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedGrantTypes"."Id", "x.AllowedGrantTypes"."ClientId", "x.AllowedGrantTypes"."GrantType" FROM "ClientGrantTypes" AS "x.AllowedGrantTypes" INNER JOIN ( SELECT x0."Id" FROM "Clients" AS x0 WHERE x0."ClientId" = @__clientId_0 ORDER BY x0."Id" LIMIT 1 ) AS t ON "x.AllowedGrantTypes"."ClientId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.852 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.RedirectUris"."Id", "x.RedirectUris"."ClientId", "x.RedirectUris"."RedirectUri" FROM "ClientRedirectUris" AS "x.RedirectUris" INNER JOIN ( SELECT x1."Id" FROM "Clients" AS x1 WHERE x1."ClientId" = @clientId_0 ORDER BY x1."Id" LIMIT 1 ) AS t0 ON "x.RedirectUris"."ClientId" = t0."Id" ORDER BY t0."Id" 2019-07-09 19:08:35.859 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.PostLogoutRedirectUris"."Id", "x.PostLogoutRedirectUris"."ClientId", "x.PostLogoutRedirectUris"."PostLogoutRedirectUri" FROM "ClientPostLogoutRedirectUris" AS "x.PostLogoutRedirectUris" INNER JOIN ( SELECT x2."Id" FROM "Clients" AS x2 WHERE x2."ClientId" = @clientId_0 ORDER BY x2."Id" LIMIT 1 ) AS t1 ON "x.PostLogoutRedirectUris"."ClientId" = t1."Id" ORDER BY t1."Id" 2019-07-09 19:08:35.865 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedScopes"."Id", "x.AllowedScopes"."ClientId", "x.AllowedScopes"."Scope" FROM "ClientScopes" AS "x.AllowedScopes" INNER JOIN ( SELECT x3."Id" FROM "Clients" AS x3 WHERE x3."ClientId" = @__clientId_0 ORDER BY x3."Id" LIMIT 1 ) AS t2 ON "x.AllowedScopes"."ClientId" = t2."Id" ORDER BY t2."Id" 2019-07-09 19:08:35.871 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.ClientSecrets"."Id", "x.ClientSecrets"."ClientId", "x.ClientSecrets"."Description", "x.ClientSecrets"."Expiration", "x.ClientSecrets"."Type", "x.ClientSecrets"."Value" FROM "ClientSecrets" AS "x.ClientSecrets" INNER JOIN ( SELECT x4."Id" FROM "Clients" AS x4 WHERE x4."ClientId" = @clientId_0 ORDER BY x4."Id" LIMIT 1 ) AS t3 ON "x.ClientSecrets"."ClientId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:35.878 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Claims"."Id", "x.Claims"."ClientId", "x.Claims"."Type", "x.Claims"."Value" FROM "ClientClaims" AS "x.Claims" INNER JOIN ( SELECT x5."Id" FROM "Clients" AS x5 WHERE x5."ClientId" = @clientId_0 ORDER BY x5."Id" LIMIT 1 ) AS t4 ON "x.Claims"."ClientId" = t4."Id" ORDER BY t4."Id" 2019-07-09 19:08:35.892 +05:30 [INF] Executed DbCommand (10ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.IdentityProviderRestrictions"."Id", "x.IdentityProviderRestrictions"."ClientId", "x.IdentityProviderRestrictions"."Provider" FROM "ClientIdPRestrictions" AS "x.IdentityProviderRestrictions" INNER JOIN ( SELECT x6."Id" FROM "Clients" AS x6 WHERE x6."ClientId" = @__clientId_0 ORDER BY x6."Id" LIMIT 1 ) AS t5 ON "x.IdentityProviderRestrictions"."ClientId" = t5."Id" ORDER BY t5."Id" 2019-07-09 19:08:35.901 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Id", "x.AllowedCorsOrigins"."ClientId", "x.AllowedCorsOrigins"."Origin" FROM "ClientCorsOrigins" AS "x.AllowedCorsOrigins" INNER JOIN ( SELECT x7."Id" FROM "Clients" AS x7 WHERE x7."ClientId" = @clientId_0 ORDER BY x7."Id" LIMIT 1 ) AS t6 ON "x.AllowedCorsOrigins"."ClientId" = t6."Id" ORDER BY t6."Id" 2019-07-09 19:08:35.907 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Properties"."Id", "x.Properties"."ClientId", "x.Properties"."Key", "x.Properties"."Value" FROM "ClientProperties" AS "x.Properties" INNER JOIN ( SELECT x8."Id" FROM "Clients" AS x8 WHERE x8."ClientId" = @clientId_0 ORDER BY x8."Id" LIMIT 1 ) AS t7 ON "x.Properties"."ClientId" = t7."Id" ORDER BY t7."Id" 2019-07-09 19:08:35.915 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource"."Id", "identityResource"."Description", "identityResource"."DisplayName", "identityResource"."Emphasize", "identityResource"."Enabled", "identityResource"."Name", "identityResource"."Required", "identityResource"."ShowInDiscoveryDocument" FROM "IdentityResources" AS "identityResource" WHERE "identityResource"."Name" IN ('openid') ORDER BY "identityResource"."Id" 2019-07-09 19:08:35.922 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource.UserClaims"."Id", "identityResource.UserClaims"."IdentityResourceId", "identityResource.UserClaims"."Type" FROM "IdentityClaims" AS "identityResource.UserClaims" INNER JOIN ( SELECT "identityResource0"."Id" FROM "IdentityResources" AS "identityResource0" WHERE "identityResource0"."Name" IN ('openid') ) AS t ON "identityResource.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.929 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT api."Id", api."Description", api."DisplayName", api."Enabled", api."Name" FROM "ApiResources" AS api WHERE EXISTS ( SELECT 1 FROM "ApiScopes" AS x WHERE x."Name" IN ('openid') AND (api."Id" = x."ApiResourceId")) ORDER BY api."Id" 2019-07-09 19:08:35.939 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource"."Id", "identityResource"."Description", "identityResource"."DisplayName", "identityResource"."Emphasize", "identityResource"."Enabled", "identityResource"."Name", "identityResource"."Required", "identityResource"."ShowInDiscoveryDocument" FROM "IdentityResources" AS "identityResource" WHERE "identityResource"."Name" IN ('openid') ORDER BY "identityResource"."Id" 2019-07-09 19:08:35.949 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource.UserClaims"."Id", "identityResource.UserClaims"."IdentityResourceId", "identityResource.UserClaims"."Type" FROM "IdentityClaims" AS "identityResource.UserClaims" INNER JOIN ( SELECT "identityResource0"."Id" FROM "IdentityResources" AS "identityResource0" WHERE "identityResource0"."Name" IN ('openid') ) AS t ON "identityResource.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.957 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT api."Id", api."Description", api."DisplayName", api."Enabled", api."Name" FROM "ApiResources" AS api WHERE EXISTS ( SELECT 1 FROM "ApiScopes" AS x WHERE x."Name" IN ('openid') AND (api."Id" = x."ApiResourceId")) ORDER BY api."Id" 2019-07-09 19:08:35.974 +05:30 [INF] Executed DbCommand (7ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."AbsoluteRefreshTokenLifetime", x."AccessTokenLifetime", x."AccessTokenType", x."AllowAccessTokensViaBrowser", x."AllowOfflineAccess", x."AllowPlainTextPkce", x."AllowRememberConsent", x."AlwaysIncludeUserClaimsInIdToken", x."AlwaysSendClientClaims", x."AuthorizationCodeLifetime", x."BackChannelLogoutSessionRequired", x."BackChannelLogoutUri", x."ClientClaimsPrefix", x."ClientId", x."ClientName", x."ClientUri", x."ConsentLifetime", x."Description", x."EnableLocalLogin", x."Enabled", x."FrontChannelLogoutSessionRequired", x."FrontChannelLogoutUri", x."IdentityTokenLifetime", x."IncludeJwtId", x."LogoUri", x."PairWiseSubjectSalt", x."ProtocolType", x."RefreshTokenExpiration", x."RefreshTokenUsage", x."RequireClientSecret", x."RequireConsent", x."RequirePkce", x."SlidingRefreshTokenLifetime", x."UpdateAccessTokenClaimsOnRefresh" FROM "Clients" AS x WHERE x."ClientId" = @__clientId_0 ORDER BY x."Id" LIMIT 1 2019-07-09 19:08:35.985 +05:30 [INF] Executed DbCommand (7ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedGrantTypes"."Id", "x.AllowedGrantTypes"."ClientId", "x.AllowedGrantTypes"."GrantType" FROM "ClientGrantTypes" AS "x.AllowedGrantTypes" INNER JOIN ( SELECT x0."Id" FROM "Clients" AS x0 WHERE x0."ClientId" = @clientId_0 ORDER BY x0."Id" LIMIT 1 ) AS t ON "x.AllowedGrantTypes"."ClientId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:35.995 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.RedirectUris"."Id", "x.RedirectUris"."ClientId", "x.RedirectUris"."RedirectUri" FROM "ClientRedirectUris" AS "x.RedirectUris" INNER JOIN ( SELECT x1."Id" FROM "Clients" AS x1 WHERE x1."ClientId" = @clientId_0 ORDER BY x1."Id" LIMIT 1 ) AS t0 ON "x.RedirectUris"."ClientId" = t0."Id" ORDER BY t0."Id" 2019-07-09 19:08:36.007 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.PostLogoutRedirectUris"."Id", "x.PostLogoutRedirectUris"."ClientId", "x.PostLogoutRedirectUris"."PostLogoutRedirectUri" FROM "ClientPostLogoutRedirectUris" AS "x.PostLogoutRedirectUris" INNER JOIN ( SELECT x2."Id" FROM "Clients" AS x2 WHERE x2."ClientId" = @__clientId_0 ORDER BY x2."Id" LIMIT 1 ) AS t1 ON "x.PostLogoutRedirectUris"."ClientId" = t1."Id" ORDER BY t1."Id" 2019-07-09 19:08:36.014 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedScopes"."Id", "x.AllowedScopes"."ClientId", "x.AllowedScopes"."Scope" FROM "ClientScopes" AS "x.AllowedScopes" INNER JOIN ( SELECT x3."Id" FROM "Clients" AS x3 WHERE x3."ClientId" = @clientId_0 ORDER BY x3."Id" LIMIT 1 ) AS t2 ON "x.AllowedScopes"."ClientId" = t2."Id" ORDER BY t2."Id" 2019-07-09 19:08:36.023 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.ClientSecrets"."Id", "x.ClientSecrets"."ClientId", "x.ClientSecrets"."Description", "x.ClientSecrets"."Expiration", "x.ClientSecrets"."Type", "x.ClientSecrets"."Value" FROM "ClientSecrets" AS "x.ClientSecrets" INNER JOIN ( SELECT x4."Id" FROM "Clients" AS x4 WHERE x4."ClientId" = @clientId_0 ORDER BY x4."Id" LIMIT 1 ) AS t3 ON "x.ClientSecrets"."ClientId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:36.031 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Claims"."Id", "x.Claims"."ClientId", "x.Claims"."Type", "x.Claims"."Value" FROM "ClientClaims" AS "x.Claims" INNER JOIN ( SELECT x5."Id" FROM "Clients" AS x5 WHERE x5."ClientId" = @__clientId_0 ORDER BY x5."Id" LIMIT 1 ) AS t4 ON "x.Claims"."ClientId" = t4."Id" ORDER BY t4."Id" 2019-07-09 19:08:36.040 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.IdentityProviderRestrictions"."Id", "x.IdentityProviderRestrictions"."ClientId", "x.IdentityProviderRestrictions"."Provider" FROM "ClientIdPRestrictions" AS "x.IdentityProviderRestrictions" INNER JOIN ( SELECT x6."Id" FROM "Clients" AS x6 WHERE x6."ClientId" = @clientId_0 ORDER BY x6."Id" LIMIT 1 ) AS t5 ON "x.IdentityProviderRestrictions"."ClientId" = t5."Id" ORDER BY t5."Id" 2019-07-09 19:08:36.046 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Id", "x.AllowedCorsOrigins"."ClientId", "x.AllowedCorsOrigins"."Origin" FROM "ClientCorsOrigins" AS "x.AllowedCorsOrigins" INNER JOIN ( SELECT x7."Id" FROM "Clients" AS x7 WHERE x7."ClientId" = @clientId_0 ORDER BY x7."Id" LIMIT 1 ) AS t6 ON "x.AllowedCorsOrigins"."ClientId" = t6."Id" ORDER BY t6."Id" 2019-07-09 19:08:36.052 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Properties"."Id", "x.Properties"."ClientId", "x.Properties"."Key", "x.Properties"."Value" FROM "ClientProperties" AS "x.Properties" INNER JOIN ( SELECT x8."Id" FROM "Clients" AS x8 WHERE x8."ClientId" = @clientId_0 ORDER BY x8."Id" LIMIT 1 ) AS t7 ON "x.Properties"."ClientId" = t7."Id" ORDER BY t7."Id" 2019-07-09 19:08:36.482 +05:30 [INF] Executing ViewResult, running view at path /Views/Account/Login.cshtml. 2019-07-09 19:08:36.719 +05:30 [INF] Executed action IdentityServer4.Quickstart.UI.AccountController.Login (IdentityServer) in 888.524ms 2019-07-09 19:08:36.731 +05:30 [INF] Request finished in 929.15ms 200 text/html; charset=utf-8 2019-07-09 19:08:39.168 +05:30 [INF] Request starting HTTP/1.1 POST http://localhost:5000/account/login?returnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dangular_spa%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%252Fauth-callback%26response_type%3Did_token%2520token%26scope%3Dopenid%26state%3Daa24219c96014e22a2960253643577e8%26nonce%3Dbff8a90b283c41b78aa610744c2a1531 application/x-www-form-urlencoded 532 2019-07-09 19:08:39.174 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:39.194 +05:30 [INF] Executing action method IdentityServer4.Quickstart.UI.AccountController.Login (IdentityServer) with arguments (["IdentityServer4.Quickstart.UI.LoginInputModel","login"]) - ModelState is "Valid" 2019-07-09 19:08:39.228 +05:30 [INF] AuthenticationScheme: idsrv signed in. 2019-07-09 19:08:39.235 +05:30 [INF] Executing RedirectResult, redirecting to /connect/authorize/callback?client_id=angular_spa&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fauth-callback&response_type=id_token%20token&scope=openid&state=aa24219c96014e22a2960253643577e8&nonce=bff8a90b283c41b78aa610744c2a1531. 2019-07-09 19:08:39.239 +05:30 [INF] Executed action IdentityServer4.Quickstart.UI.AccountController.Login (IdentityServer) in 52.192600000000006ms 2019-07-09 19:08:39.245 +05:30 [INF] Request finished in 77.3388ms 302 2019-07-09 19:08:39.273 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/connect/authorize/callback?client_id=angular_spa&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fauth-callback&response_type=id_token%20token&scope=openid&state=aa24219c96014e22a2960253643577e8&nonce=bff8a90b283c41b78aa610744c2a1531
2019-07-09 19:08:39.277 +05:30 [INF] AuthenticationScheme: idsrv was successfully authenticated. 2019-07-09 19:08:39.281 +05:30 [INF] AuthenticationScheme: idsrv was successfully authenticated. 2019-07-09 19:08:39.286 +05:30 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeCallbackEndpoint for /connect/authorize/callback 2019-07-09 19:08:39.301 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:39.311 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@
clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."AbsoluteRefreshTokenLifetime", x."AccessTokenLifetime", x."AccessTokenType", x."AllowAccessTokensViaBrowser", x."AllowOfflineAccess", x."AllowPlainTextPkce", x."AllowRememberConsent", x."AlwaysIncludeUserClaimsInIdToken", x."AlwaysSendClientClaims", x."AuthorizationCodeLifetime", x."BackChannelLogoutSessionRequired", x."BackChannelLogoutUri", x."ClientClaimsPrefix", x."ClientId", x."ClientName", x."ClientUri", x."ConsentLifetime", x."Description", x."EnableLocalLogin", x."Enabled", x."FrontChannelLogoutSessionRequired", x."FrontChannelLogoutUri", x."IdentityTokenLifetime", x."IncludeJwtId", x."LogoUri", x."PairWiseSubjectSalt", x."ProtocolType", x."RefreshTokenExpiration", x."RefreshTokenUsage", x."RequireClientSecret", x."RequireConsent", x."RequirePkce", x."SlidingRefreshTokenLifetime", x."UpdateAccessTokenClaimsOnRefresh" FROM "Clients" AS x WHERE x."ClientId" = @
clientId_0 ORDER BY x."Id" LIMIT 1 2019-07-09 19:08:39.321 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedGrantTypes"."Id", "x.AllowedGrantTypes"."ClientId", "x.AllowedGrantTypes"."GrantType" FROM "ClientGrantTypes" AS "x.AllowedGrantTypes" INNER JOIN ( SELECT x0."Id" FROM "Clients" AS x0 WHERE x0."ClientId" = @__clientId_0 ORDER BY x0."Id" LIMIT 1 ) AS t ON "x.AllowedGrantTypes"."ClientId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:39.331 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.RedirectUris"."Id", "x.RedirectUris"."ClientId", "x.RedirectUris"."RedirectUri" FROM "ClientRedirectUris" AS "x.RedirectUris" INNER JOIN ( SELECT x1."Id" FROM "Clients" AS x1 WHERE x1."ClientId" = @clientId_0 ORDER BY x1."Id" LIMIT 1 ) AS t0 ON "x.RedirectUris"."ClientId" = t0."Id" ORDER BY t0."Id" 2019-07-09 19:08:39.347 +05:30 [INF] Executed DbCommand (7ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.PostLogoutRedirectUris"."Id", "x.PostLogoutRedirectUris"."ClientId", "x.PostLogoutRedirectUris"."PostLogoutRedirectUri" FROM "ClientPostLogoutRedirectUris" AS "x.PostLogoutRedirectUris" INNER JOIN ( SELECT x2."Id" FROM "Clients" AS x2 WHERE x2."ClientId" = @clientId_0 ORDER BY x2."Id" LIMIT 1 ) AS t1 ON "x.PostLogoutRedirectUris"."ClientId" = t1."Id" ORDER BY t1."Id" 2019-07-09 19:08:39.360 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedScopes"."Id", "x.AllowedScopes"."ClientId", "x.AllowedScopes"."Scope" FROM "ClientScopes" AS "x.AllowedScopes" INNER JOIN ( SELECT x3."Id" FROM "Clients" AS x3 WHERE x3."ClientId" = @__clientId_0 ORDER BY x3."Id" LIMIT 1 ) AS t2 ON "x.AllowedScopes"."ClientId" = t2."Id" ORDER BY t2."Id" 2019-07-09 19:08:39.370 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.ClientSecrets"."Id", "x.ClientSecrets"."ClientId", "x.ClientSecrets"."Description", "x.ClientSecrets"."Expiration", "x.ClientSecrets"."Type", "x.ClientSecrets"."Value" FROM "ClientSecrets" AS "x.ClientSecrets" INNER JOIN ( SELECT x4."Id" FROM "Clients" AS x4 WHERE x4."ClientId" = @clientId_0 ORDER BY x4."Id" LIMIT 1 ) AS t3 ON "x.ClientSecrets"."ClientId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:39.381 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Claims"."Id", "x.Claims"."ClientId", "x.Claims"."Type", "x.Claims"."Value" FROM "ClientClaims" AS "x.Claims" INNER JOIN ( SELECT x5."Id" FROM "Clients" AS x5 WHERE x5."ClientId" = @clientId_0 ORDER BY x5."Id" LIMIT 1 ) AS t4 ON "x.Claims"."ClientId" = t4."Id" ORDER BY t4."Id" 2019-07-09 19:08:39.391 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.IdentityProviderRestrictions"."Id", "x.IdentityProviderRestrictions"."ClientId", "x.IdentityProviderRestrictions"."Provider" FROM "ClientIdPRestrictions" AS "x.IdentityProviderRestrictions" INNER JOIN ( SELECT x6."Id" FROM "Clients" AS x6 WHERE x6."ClientId" = @__clientId_0 ORDER BY x6."Id" LIMIT 1 ) AS t5 ON "x.IdentityProviderRestrictions"."ClientId" = t5."Id" ORDER BY t5."Id" 2019-07-09 19:08:39.400 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Id", "x.AllowedCorsOrigins"."ClientId", "x.AllowedCorsOrigins"."Origin" FROM "ClientCorsOrigins" AS "x.AllowedCorsOrigins" INNER JOIN ( SELECT x7."Id" FROM "Clients" AS x7 WHERE x7."ClientId" = @clientId_0 ORDER BY x7."Id" LIMIT 1 ) AS t6 ON "x.AllowedCorsOrigins"."ClientId" = t6."Id" ORDER BY t6."Id" 2019-07-09 19:08:39.409 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Properties"."Id", "x.Properties"."ClientId", "x.Properties"."Key", "x.Properties"."Value" FROM "ClientProperties" AS "x.Properties" INNER JOIN ( SELECT x8."Id" FROM "Clients" AS x8 WHERE x8."ClientId" = @clientId_0 ORDER BY x8."Id" LIMIT 1 ) AS t7 ON "x.Properties"."ClientId" = t7."Id" ORDER BY t7."Id" 2019-07-09 19:08:39.419 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource"."Id", "identityResource"."Description", "identityResource"."DisplayName", "identityResource"."Emphasize", "identityResource"."Enabled", "identityResource"."Name", "identityResource"."Required", "identityResource"."ShowInDiscoveryDocument" FROM "IdentityResources" AS "identityResource" WHERE "identityResource"."Name" IN ('openid') ORDER BY "identityResource"."Id" 2019-07-09 19:08:39.429 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource.UserClaims"."Id", "identityResource.UserClaims"."IdentityResourceId", "identityResource.UserClaims"."Type" FROM "IdentityClaims" AS "identityResource.UserClaims" INNER JOIN ( SELECT "identityResource0"."Id" FROM "IdentityResources" AS "identityResource0" WHERE "identityResource0"."Name" IN ('openid') ) AS t ON "identityResource.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:39.439 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT api."Id", api."Description", api."DisplayName", api."Enabled", api."Name" FROM "ApiResources" AS api WHERE EXISTS ( SELECT 1 FROM "ApiScopes" AS x WHERE x."Name" IN ('openid') AND (api."Id" = x."ApiResourceId")) ORDER BY api."Id" 2019-07-09 19:08:39.447 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource"."Id", "identityResource"."Description", "identityResource"."DisplayName", "identityResource"."Emphasize", "identityResource"."Enabled", "identityResource"."Name", "identityResource"."Required", "identityResource"."ShowInDiscoveryDocument" FROM "IdentityResources" AS "identityResource" WHERE "identityResource"."Name" IN ('openid') ORDER BY "identityResource"."Id" 2019-07-09 19:08:39.458 +05:30 [INF] Executed DbCommand (7ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource.UserClaims"."Id", "identityResource.UserClaims"."IdentityResourceId", "identityResource.UserClaims"."Type" FROM "IdentityClaims" AS "identityResource.UserClaims" INNER JOIN ( SELECT "identityResource0"."Id" FROM "IdentityResources" AS "identityResource0" WHERE "identityResource0"."Name" IN ('openid') ) AS t ON "identityResource.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:39.470 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT api."Id", api."Description", api."DisplayName", api."Enabled", api."Name" FROM "ApiResources" AS api WHERE EXISTS ( SELECT 1 FROM "ApiScopes" AS x WHERE x."Name" IN ('openid') AND (api."Id" = x."ApiResourceId")) ORDER BY api."Id" 2019-07-09 19:08:39.475 +05:30 [INF] ValidatedAuthorizeRequest { "ClientId": "angular_spa", "ClientName": "angular_spa", "RedirectUri": "http://localhost:4200/auth-callback", "AllowedRedirectUris": [ "http://192.192.8.195:4200/auth-callback", "http://localhost:4200/auth-callback" ], "SubjectId": "125", "ResponseType": "id_token token", "ResponseMode": "fragment", "GrantType": "implicit", "RequestedScopes": "openid", "State": "aa24219c96014e22a2960253643577e8", "Nonce": "bff8a90b283c41b78aa610744c2a1531", "SessionId": "def9b97a4acb8d679cc44bbeb7e54d67", "Raw": { "client_id": "angular_spa", "redirect_uri": "http://localhost:4200/auth-callback", "response_type": "id_token token", "scope": "openid", "state": "aa24219c96014e22a2960253643577e8", "nonce": "bff8a90b283c41b78aa610744c2a1531" } } 2019-07-09 19:08:39.511 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'PersistedGrantDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:39.526 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@key_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Key", x."ClientId", x."CreationTime", x."Data", x."Expiration", x."SubjectId", x."Type" FROM "PersistedGrants" AS x WHERE x."Key" = @key_0 LIMIT 1 2019-07-09 19:08:39.709 +05:30 [INF] Authorize endpoint response { "SubjectId": "125", "ClientId": "angular_spa", "RedirectUri": "http://localhost:4200/auth-callback", "State": "aa24219c96014e22a2960253643577e8", "Scope": "openid" } 2019-07-09 19:08:39.726 +05:30 [INF] AuthenticationScheme: idsrv signed in. 2019-07-09 19:08:39.735 +05:30 [INF] Request finished in 485.2904ms 302 2019-07-09 19:08:40.263 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/.well-known/openid-configuration
2019-07-09 19:08:40.270 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:40.276 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:40.283 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Origin" FROM "Clients" AS x INNER JOIN "ClientCorsOrigins" AS "x.AllowedCorsOrigins" ON x."Id" = "x.AllowedCorsOrigins"."ClientId" 2019-07-09 19:08:40.291 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:40.303 +05:30 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2019-07-09 19:08:40.311 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."Description", x."DisplayName", x."Emphasize", x."Enabled", x."Name", x."Required", x."ShowInDiscoveryDocument" FROM "IdentityResources" AS x ORDER BY x."Id" 2019-07-09 19:08:40.319 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.UserClaims"."Id", "x.UserClaims"."IdentityResourceId", "x.UserClaims"."Type" FROM "IdentityClaims" AS "x.UserClaims" INNER JOIN ( SELECT x0."Id" FROM "IdentityResources" AS x0 ) AS t ON "x.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:40.326 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."Description", x."DisplayName", x."Enabled", x."Name" FROM "ApiResources" AS x ORDER BY x."Id" 2019-07-09 19:08:40.334 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Secrets"."Id", "x.Secrets"."ApiResourceId", "x.Secrets"."Description", "x.Secrets"."Expiration", "x.Secrets"."Type", "x.Secrets"."Value" FROM "ApiSecrets" AS "x.Secrets" INNER JOIN ( SELECT x0."Id" FROM "ApiResources" AS x0 ) AS t ON "x.Secrets"."ApiResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:40.348 +05:30 [INF] Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Scopes"."Id", "x.Scopes"."ApiResourceId", "x.Scopes"."Description", "x.Scopes"."DisplayName", "x.Scopes"."Emphasize", "x.Scopes"."Name", "x.Scopes"."Required", "x.Scopes"."ShowInDiscoveryDocument" FROM "ApiScopes" AS "x.Scopes" INNER JOIN ( SELECT x1."Id" FROM "ApiResources" AS x1 ) AS t0 ON "x.Scopes"."ApiResourceId" = t0."Id" ORDER BY t0."Id", "x.Scopes"."Id" 2019-07-09 19:08:40.362 +05:30 [INF] Executed DbCommand (8ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Scopes.UserClaims"."Id", "x.Scopes.UserClaims"."ApiScopeId", "x.Scopes.UserClaims"."Type" FROM "ApiScopeClaims" AS "x.Scopes.UserClaims" INNER JOIN ( SELECT DISTINCT "x.Scopes0"."Id", t1."Id" AS "Id0" FROM "ApiScopes" AS "x.Scopes0" INNER JOIN ( SELECT x2."Id" FROM "ApiResources" AS x2 ) AS t1 ON "x.Scopes0"."ApiResourceId" = t1."Id" ) AS t2 ON "x.Scopes.UserClaims"."ApiScopeId" = t2."Id" ORDER BY t2."Id0", t2."Id" 2019-07-09 19:08:40.374 +05:30 [INF] Executed DbCommand (8ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.UserClaims"."Id", "x.UserClaims"."ApiResourceId", "x.UserClaims"."Type" FROM "ApiClaims" AS "x.UserClaims" INNER JOIN ( SELECT x3."Id" FROM "ApiResources" AS x3 ) AS t3 ON "x.UserClaims"."ApiResourceId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:40.384 +05:30 [INF] Request finished in 118.1202ms 200 application/json; charset=UTF-8 2019-07-09 19:08:40.392 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/.well-known/openid-configuration/jwks
2019-07-09 19:08:40.396 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:40.402 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:40.420 +05:30 [INF] Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Origin" FROM "Clients" AS x INNER JOIN "ClientCorsOrigins" AS "x.AllowedCorsOrigins" ON x."Id" = "x.AllowedCorsOrigins"."ClientId" 2019-07-09 19:08:40.424 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:40.428 +05:30 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryKeyEndpoint for /.well-known/openid-configuration/jwks 2019-07-09 19:08:40.449 +05:30 [INF] Request finished in 56.1313ms 200 application/json; charset=UTF-8 2019-07-09 19:08:40.469 +05:30 [INF] Request starting HTTP/1.1 OPTIONS http://localhost:5000/connect/userinfo
2019-07-09 19:08:40.473 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:40.480 +05:30 [INF] Request finished in 8.623ms 204 2019-07-09 19:08:40.486 +05:30 [INF] Request starting HTTP/1.1 GET http://localhost:5000/connect/userinfo
2019-07-09 19:08:40.489 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:40.493 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'ConfigurationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:40.506 +05:30 [INF] Executed DbCommand (9ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Origin" FROM "Clients" AS x INNER JOIN "ClientCorsOrigins" AS "x.AllowedCorsOrigins" ON x."Id" = "x.AllowedCorsOrigins"."ClientId" 2019-07-09 19:08:40.509 +05:30 [INF] Policy execution successful. 2019-07-09 19:08:40.514 +05:30 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.UserInfoEndpoint for /connect/userinfo 2019-07-09 19:08:40.567 +05:30 [INF] Executed DbCommand (7ms) [Parameters=[@
clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."AbsoluteRefreshTokenLifetime", x."AccessTokenLifetime", x."AccessTokenType", x."AllowAccessTokensViaBrowser", x."AllowOfflineAccess", x."AllowPlainTextPkce", x."AllowRememberConsent", x."AlwaysIncludeUserClaimsInIdToken", x."AlwaysSendClientClaims", x."AuthorizationCodeLifetime", x."BackChannelLogoutSessionRequired", x."BackChannelLogoutUri", x."ClientClaimsPrefix", x."ClientId", x."ClientName", x."ClientUri", x."ConsentLifetime", x."Description", x."EnableLocalLogin", x."Enabled", x."FrontChannelLogoutSessionRequired", x."FrontChannelLogoutUri", x."IdentityTokenLifetime", x."IncludeJwtId", x."LogoUri", x."PairWiseSubjectSalt", x."ProtocolType", x."RefreshTokenExpiration", x."RefreshTokenUsage", x."RequireClientSecret", x."RequireConsent", x."RequirePkce", x."SlidingRefreshTokenLifetime", x."UpdateAccessTokenClaimsOnRefresh" FROM "Clients" AS x WHERE x."ClientId" = @
clientId_0 ORDER BY x."Id" LIMIT 1 2019-07-09 19:08:40.575 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedGrantTypes"."Id", "x.AllowedGrantTypes"."ClientId", "x.AllowedGrantTypes"."GrantType" FROM "ClientGrantTypes" AS "x.AllowedGrantTypes" INNER JOIN ( SELECT x0."Id" FROM "Clients" AS x0 WHERE x0."ClientId" = @__clientId_0 ORDER BY x0."Id" LIMIT 1 ) AS t ON "x.AllowedGrantTypes"."ClientId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:40.584 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.RedirectUris"."Id", "x.RedirectUris"."ClientId", "x.RedirectUris"."RedirectUri" FROM "ClientRedirectUris" AS "x.RedirectUris" INNER JOIN ( SELECT x1."Id" FROM "Clients" AS x1 WHERE x1."ClientId" = @clientId_0 ORDER BY x1."Id" LIMIT 1 ) AS t0 ON "x.RedirectUris"."ClientId" = t0."Id" ORDER BY t0."Id" 2019-07-09 19:08:40.594 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.PostLogoutRedirectUris"."Id", "x.PostLogoutRedirectUris"."ClientId", "x.PostLogoutRedirectUris"."PostLogoutRedirectUri" FROM "ClientPostLogoutRedirectUris" AS "x.PostLogoutRedirectUris" INNER JOIN ( SELECT x2."Id" FROM "Clients" AS x2 WHERE x2."ClientId" = @clientId_0 ORDER BY x2."Id" LIMIT 1 ) AS t1 ON "x.PostLogoutRedirectUris"."ClientId" = t1."Id" ORDER BY t1."Id" 2019-07-09 19:08:40.607 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedScopes"."Id", "x.AllowedScopes"."ClientId", "x.AllowedScopes"."Scope" FROM "ClientScopes" AS "x.AllowedScopes" INNER JOIN ( SELECT x3."Id" FROM "Clients" AS x3 WHERE x3."ClientId" = @__clientId_0 ORDER BY x3."Id" LIMIT 1 ) AS t2 ON "x.AllowedScopes"."ClientId" = t2."Id" ORDER BY t2."Id" 2019-07-09 19:08:40.617 +05:30 [INF] Executed DbCommand (6ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.ClientSecrets"."Id", "x.ClientSecrets"."ClientId", "x.ClientSecrets"."Description", "x.ClientSecrets"."Expiration", "x.ClientSecrets"."Type", "x.ClientSecrets"."Value" FROM "ClientSecrets" AS "x.ClientSecrets" INNER JOIN ( SELECT x4."Id" FROM "Clients" AS x4 WHERE x4."ClientId" = @clientId_0 ORDER BY x4."Id" LIMIT 1 ) AS t3 ON "x.ClientSecrets"."ClientId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:40.627 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Claims"."Id", "x.Claims"."ClientId", "x.Claims"."Type", "x.Claims"."Value" FROM "ClientClaims" AS "x.Claims" INNER JOIN ( SELECT x5."Id" FROM "Clients" AS x5 WHERE x5."ClientId" = @clientId_0 ORDER BY x5."Id" LIMIT 1 ) AS t4 ON "x.Claims"."ClientId" = t4."Id" ORDER BY t4."Id" 2019-07-09 19:08:40.640 +05:30 [INF] Executed DbCommand (7ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.IdentityProviderRestrictions"."Id", "x.IdentityProviderRestrictions"."ClientId", "x.IdentityProviderRestrictions"."Provider" FROM "ClientIdPRestrictions" AS "x.IdentityProviderRestrictions" INNER JOIN ( SELECT x6."Id" FROM "Clients" AS x6 WHERE x6."ClientId" = @__clientId_0 ORDER BY x6."Id" LIMIT 1 ) AS t5 ON "x.IdentityProviderRestrictions"."ClientId" = t5."Id" ORDER BY t5."Id" 2019-07-09 19:08:40.648 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Id", "x.AllowedCorsOrigins"."ClientId", "x.AllowedCorsOrigins"."Origin" FROM "ClientCorsOrigins" AS "x.AllowedCorsOrigins" INNER JOIN ( SELECT x7."Id" FROM "Clients" AS x7 WHERE x7."ClientId" = @clientId_0 ORDER BY x7."Id" LIMIT 1 ) AS t6 ON "x.AllowedCorsOrigins"."ClientId" = t6."Id" ORDER BY t6."Id" 2019-07-09 19:08:40.656 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Properties"."Id", "x.Properties"."ClientId", "x.Properties"."Key", "x.Properties"."Value" FROM "ClientProperties" AS "x.Properties" INNER JOIN ( SELECT x8."Id" FROM "Clients" AS x8 WHERE x8."ClientId" = @clientId_0 ORDER BY x8."Id" LIMIT 1 ) AS t7 ON "x.Properties"."ClientId" = t7."Id" ORDER BY t7."Id" 2019-07-09 19:08:40.675 +05:30 [INF] Executed DbCommand (5ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Id", x."AbsoluteRefreshTokenLifetime", x."AccessTokenLifetime", x."AccessTokenType", x."AllowAccessTokensViaBrowser", x."AllowOfflineAccess", x."AllowPlainTextPkce", x."AllowRememberConsent", x."AlwaysIncludeUserClaimsInIdToken", x."AlwaysSendClientClaims", x."AuthorizationCodeLifetime", x."BackChannelLogoutSessionRequired", x."BackChannelLogoutUri", x."ClientClaimsPrefix", x."ClientId", x."ClientName", x."ClientUri", x."ConsentLifetime", x."Description", x."EnableLocalLogin", x."Enabled", x."FrontChannelLogoutSessionRequired", x."FrontChannelLogoutUri", x."IdentityTokenLifetime", x."IncludeJwtId", x."LogoUri", x."PairWiseSubjectSalt", x."ProtocolType", x."RefreshTokenExpiration", x."RefreshTokenUsage", x."RequireClientSecret", x."RequireConsent", x."RequirePkce", x."SlidingRefreshTokenLifetime", x."UpdateAccessTokenClaimsOnRefresh" FROM "Clients" AS x WHERE x."ClientId" = @__clientId_0 ORDER BY x."Id" LIMIT 1 2019-07-09 19:08:40.683 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedGrantTypes"."Id", "x.AllowedGrantTypes"."ClientId", "x.AllowedGrantTypes"."GrantType" FROM "ClientGrantTypes" AS "x.AllowedGrantTypes" INNER JOIN ( SELECT x0."Id" FROM "Clients" AS x0 WHERE x0."ClientId" = @clientId_0 ORDER BY x0."Id" LIMIT 1 ) AS t ON "x.AllowedGrantTypes"."ClientId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:40.690 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.RedirectUris"."Id", "x.RedirectUris"."ClientId", "x.RedirectUris"."RedirectUri" FROM "ClientRedirectUris" AS "x.RedirectUris" INNER JOIN ( SELECT x1."Id" FROM "Clients" AS x1 WHERE x1."ClientId" = @clientId_0 ORDER BY x1."Id" LIMIT 1 ) AS t0 ON "x.RedirectUris"."ClientId" = t0."Id" ORDER BY t0."Id" 2019-07-09 19:08:40.697 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.PostLogoutRedirectUris"."Id", "x.PostLogoutRedirectUris"."ClientId", "x.PostLogoutRedirectUris"."PostLogoutRedirectUri" FROM "ClientPostLogoutRedirectUris" AS "x.PostLogoutRedirectUris" INNER JOIN ( SELECT x2."Id" FROM "Clients" AS x2 WHERE x2."ClientId" = @__clientId_0 ORDER BY x2."Id" LIMIT 1 ) AS t1 ON "x.PostLogoutRedirectUris"."ClientId" = t1."Id" ORDER BY t1."Id" 2019-07-09 19:08:40.704 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedScopes"."Id", "x.AllowedScopes"."ClientId", "x.AllowedScopes"."Scope" FROM "ClientScopes" AS "x.AllowedScopes" INNER JOIN ( SELECT x3."Id" FROM "Clients" AS x3 WHERE x3."ClientId" = @clientId_0 ORDER BY x3."Id" LIMIT 1 ) AS t2 ON "x.AllowedScopes"."ClientId" = t2."Id" ORDER BY t2."Id" 2019-07-09 19:08:40.711 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.ClientSecrets"."Id", "x.ClientSecrets"."ClientId", "x.ClientSecrets"."Description", "x.ClientSecrets"."Expiration", "x.ClientSecrets"."Type", "x.ClientSecrets"."Value" FROM "ClientSecrets" AS "x.ClientSecrets" INNER JOIN ( SELECT x4."Id" FROM "Clients" AS x4 WHERE x4."ClientId" = @clientId_0 ORDER BY x4."Id" LIMIT 1 ) AS t3 ON "x.ClientSecrets"."ClientId" = t3."Id" ORDER BY t3."Id" 2019-07-09 19:08:40.718 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Claims"."Id", "x.Claims"."ClientId", "x.Claims"."Type", "x.Claims"."Value" FROM "ClientClaims" AS "x.Claims" INNER JOIN ( SELECT x5."Id" FROM "Clients" AS x5 WHERE x5."ClientId" = @__clientId_0 ORDER BY x5."Id" LIMIT 1 ) AS t4 ON "x.Claims"."ClientId" = t4."Id" ORDER BY t4."Id" 2019-07-09 19:08:40.726 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.IdentityProviderRestrictions"."Id", "x.IdentityProviderRestrictions"."ClientId", "x.IdentityProviderRestrictions"."Provider" FROM "ClientIdPRestrictions" AS "x.IdentityProviderRestrictions" INNER JOIN ( SELECT x6."Id" FROM "Clients" AS x6 WHERE x6."ClientId" = @clientId_0 ORDER BY x6."Id" LIMIT 1 ) AS t5 ON "x.IdentityProviderRestrictions"."ClientId" = t5."Id" ORDER BY t5."Id" 2019-07-09 19:08:40.733 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[@__clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.AllowedCorsOrigins"."Id", "x.AllowedCorsOrigins"."ClientId", "x.AllowedCorsOrigins"."Origin" FROM "ClientCorsOrigins" AS "x.AllowedCorsOrigins" INNER JOIN ( SELECT x7."Id" FROM "Clients" AS x7 WHERE x7."ClientId" = @clientId_0 ORDER BY x7."Id" LIMIT 1 ) AS t6 ON "x.AllowedCorsOrigins"."ClientId" = t6."Id" ORDER BY t6."Id" 2019-07-09 19:08:40.751 +05:30 [INF] Executed DbCommand (4ms) [Parameters=[@clientId_0='?' (Size = 200)], CommandType='"Text"', CommandTimeout='30'] SELECT "x.Properties"."Id", "x.Properties"."ClientId", "x.Properties"."Key", "x.Properties"."Value" FROM "ClientProperties" AS "x.Properties" INNER JOIN ( SELECT x8."Id" FROM "Clients" AS x8 WHERE x8."ClientId" = @__clientId_0 ORDER BY x8."Id" LIMIT 1 ) AS t7 ON "x.Properties"."ClientId" = t7."Id" ORDER BY t7."Id" 2019-07-09 19:08:40.772 +05:30 [INF] Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource"."Id", "identityResource"."Description", "identityResource"."DisplayName", "identityResource"."Emphasize", "identityResource"."Enabled", "identityResource"."Name", "identityResource"."Required", "identityResource"."ShowInDiscoveryDocument" FROM "IdentityResources" AS "identityResource" WHERE "identityResource"."Name" IN ('openid') ORDER BY "identityResource"."Id" 2019-07-09 19:08:40.778 +05:30 [INF] Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] SELECT "identityResource.UserClaims"."Id", "identityResource.UserClaims"."IdentityResourceId", "identityResource.UserClaims"."Type" FROM "IdentityClaims" AS "identityResource.UserClaims" INNER JOIN ( SELECT "identityResource0"."Id" FROM "IdentityResources" AS "identityResource0" WHERE "identityResource0"."Name" IN ('openid') ) AS t ON "identityResource.UserClaims"."IdentityResourceId" = t."Id" ORDER BY t."Id" 2019-07-09 19:08:40.783 +05:30 [INF] Profile service returned to the following claim types: role username email sub 2019-07-09 19:08:40.787 +05:30 [ERR] Profile service returned incorrect subject value: sub: 5d57a0a8-e1f3-4e56-8900-9b2668387871 2019-07-09 19:08:40.949 +05:30 [FTL] Unhandled exception: System.InvalidOperationException: Profile service returned incorrect subject value at IdentityServer4.ResponseHandling.UserInfoResponseGenerator.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Endpoints.UserInfoEndpoint.d6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Endpoints.UserInfoEndpoint.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Hosting.IdentityServerMiddleware.d3.MoveNext() 2019-07-09 19:08:41.140 +05:30 [ERR] An unhandled exception has occurred while executing the request System.InvalidOperationException: Profile service returned incorrect subject value at IdentityServer4.ResponseHandling.UserInfoResponseGenerator.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Endpoints.UserInfoEndpoint.d6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Endpoints.UserInfoEndpoint.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Hosting.IdentityServerMiddleware.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at IdentityServer4.Hosting.IdentityServerMiddleware.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.d6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Hosting.BaseUrlMiddleware.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.d7.MoveNext() 2019-07-09 19:08:41.261 +05:30 [INF] Request finished in 774.2164ms 500 text/html; charset=utf-8 2019-07-09 19:08:44.872 +05:30 [INF] Entity Framework Core 2.1.2-rtm-30932 initialized 'PersistedGrantDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: MigrationsAssembly=IdentityServer 2019-07-09 19:08:44.911 +05:30 [INF] Executed DbCommand (7ms) [Parameters=[@__p_0='?' (DbType = Int32)], CommandType='"Text"', CommandTimeout='30'] SELECT x."Key", x."ClientId", x."CreationTime", x."Data", x."Expiration", x."SubjectId", x."Type" FROM "PersistedGrants" AS x WHERE x."Expiration" < NOW() AT TIME ZONE 'UTC' ORDER BY x."Key" LIMIT @__p_0 2019-07-09 19:08:44.917 +05:30 [INF] Clearing 0 tokens

brockallen commented 5 years ago

Can you check your profile service and see what it's doing. For some reason its returning a subject id different than the one requested in the context.

mayankgaur commented 5 years ago

@brockallen can you please elaborate. As I am new to Identity Server, I don't know how to check that

mayankgaur commented 5 years ago

here is my Profile service public class CustomProfileService : IProfileService { protected readonly ILogger Logger;

    protected readonly IUserRepository _userRepository;

    public CustomProfileService(IUserRepository userRepository, ILogger<CustomProfileService> logger)
    {
        _userRepository = userRepository;
        Logger = logger;
    }

    public async Task GetProfileDataAsync(ProfileDataRequestContext context)
    {
        var sub = context.Subject.GetSubjectId();

        Logger.LogDebug("Get profile called for subject {subject} from client {client} with claim types {claimTypes} via {caller}",
            context.Subject.GetSubjectId(),
            context.Client.ClientName ?? context.Client.ClientId,
            context.RequestedClaimTypes,
            context.Caller);

        var user = _userRepository.FindBySubjectId(context.Subject.GetSubjectId());

        var claims = new List<Claim>
        {
            new Claim("role", "user"),
            new Claim("username", user.UserName),
            new Claim("email", user.Email),
            new Claim("sub",user.CustomUserId.ToString())
        };

        context.IssuedClaims = claims;
    }

    public async Task IsActiveAsync(IsActiveContext context)
    {
        var sub = context.Subject.GetSubjectId();
        var user = _userRepository.FindBySubjectId(context.Subject.GetSubjectId());
        context.IsActive = user != null;
    }
}
leastprivilege commented 5 years ago

new Claim("sub",user.CustomUserId.ToString())

you are not supposed to set the sub claim inside your profile service - apparently this is a different value that the one that got passed in via the context.

mayankgaur commented 5 years ago

new Claim("sub",user.CustomUserId.ToString())

you are not supposed to set the sub claim inside your profile service - apparently this is a different value that the one that got passed in via the context.

Ok Thanks I will check

mayankgaur commented 5 years ago

@leastprivilege thanks bro it worked

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.