Profile service returned incorrect subject value

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 token&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://<IP_ADDRESS>: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 token&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://<IP_ADDRESS>: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.d__4.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.d__6.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.d__5.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.d__3.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.d__4.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.d__6.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.d__5.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.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at IdentityServer4.Hosting.IdentityServerMiddleware.d__3.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.d__6.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.d__7.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.d__3.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.d__7.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

Find the simplest repro for the issue please.

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

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;
    }
}

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.

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

@leastprivilege thanks bro it worked


Consider enabling tests

If one simply adds a couple changes, one can actually run the tests of youtube-dl.  Note: I tested this with a newer version of ytdl, not technically the version I'm making a pull to.

Thanks a lot for the contributions, @unit193. I will take a look at your patches this weekend. If you have further suggestions, please, feel free to send them!
Thanks once again,
Rogério.

Howdy,
Were you able to review these changes (and perhaps snag the new upstream too)?
~Unit 193

@unit193, Just a comment:
How did you succeed to pass the tests with flake8 and the Makefile as is? I had to add a bunch of stuff to flake8 (for instance, for it to ignore the .pc and .pybuild directories that the debian packages create during build).
Furthermore, I had to make flake8 ignore bazillion stylistic problems (upon which I don't have full control, unless I send bazillion patches to upstream) that flake8 found...
I will update the package with what I have so far, but I would like to have further comments from you.
Thanks,
Rogério Brito.

Howdy,
They just either passed for me or they were skipped, http://sprunge.us/dkVVFv is the full log.  You'll note that it shows "flake8 ." after 'make offlinetest' which I presumed was flake8 running in a more silent mode.
I'm not really sure what to tell you, this is (obviously) pbuilder with an unstable chroot.
~Unit 193


How to draw a polygon with a hole

I tried to accomplish the above task with the following code, but it didn't work. Please kindly advise what am I missing?
package main

import (
	"github.com/tdewolff/canvas"
	"github.com/tdewolff/canvas/renderers/rasterizer"
)

func main() {
	c := canvas.New(256, 256)
	ctx := canvas.NewContext(c)

	ctx.MoveTo(0, 0)
	ctx.LineTo(256, 0)
	ctx.LineTo(128, 256)
	ctx.Close()

	ctx.MoveTo(10, 10)
	ctx.LineTo(246, 10)
	ctx.LineTo(128, 246)
	ctx.Close()

	ctx.SetFillRule(canvas.EvenOdd)
	ctx.SetFillColor(canvas.Lightblue)
	ctx.SetStrokeColor(canvas.Blue)
	ctx.SetStrokeWidth(0.5)

	ctx.FillStroke()

	c.WriteFile("getting-started.png", rasterizer.PNGWriter(1.0))
}

Ok, I have figured it out, just draw the inside in another direction. Sorry for bothering.

No bother at all! The filling of a path is actually determined by the FillRule which you can set using canvas.FillRule = canvas.EvenOdd or canvas.FillRule = canvas.NonZero (the latter is the default). See more at https://pkg.go.dev/github.com/tdewolff/canvas#FillRule. Basically, NonZero is direction dependent, while EvenOdd is not. Most implementations assume NonZero. Be aware that EvenOdd is not fully supported by all renderers in all cases yet.


Newline separated handlers in json config only show first handler in Uchiwa

In some of our check definitions we have handlers broken out as such:
                       "handlers": [
                                "foo",
                                "bar"
                        ],

In this case, "foo" will only show up in uchiwa when drilling into client -> checks -> check details.
If we structure the json for the check definition as such:
                       "handlers": [
                                "foo", "bar"
                        ],

.. then both handlers will display in Uchiwa.  This appears to be cosmetic only.
Sensu version: 0.26.5-2
Uchiwa version: 0.25.2
Likely Uchiwa just needs to concatenate all the handlers into a single line (stripping line feeds).

Hi @xyntrix, sorry for the delayed response, I was in vacation for the past few weeks!
Unfortunately I was unable to reproduce this issue. If I use the following check configuration:
"check_handlers": {
      "command": "return.rb -c 0",
      "handlers": [
        "foo",
        "bar"
      ],
      [...]
    }

I get the following result in Uchiwa:

I'm not sure what happen in your case but I would suggest to verify the Sensu API to make sure it display both handlers and fire up your browser console to see if there's any javascript error showing up.
Let me know if you find anything!
Thanks

I'm closing this issue since we didn't received any responses.
If you are still facing this problem, please let us know with a comment and we'll be happy to reopen the issue.
Thanks!


Add possibility to define custom handler after successful upload

It would be great to add custom handler for 2xx response, when upload was successfull
usage:
<XHRUploader ... onSuccess={...} ... />

@donarus that's a good idea. Would you like to submit a PR? Otherwise it'll need to wait a bit.

Hi, I think my current knowledge of React and JavaScripts is too low (haven't seen JS for > 5 years, I'm not the "frontend GUI" :)). I'll give it a try this week if I'll find some time.


Fix save edits

Issue #, if available:
Description of changes:
Store the original workflow id so the subtitles view can get transcribe and caption data from that.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Merging without a code review in order to get the e2e test working.


Do not fixup HTML data length

The data provided by local applications can be actually encoded in UTF-16 (e.g., Firefox does this to HTML). UTF-16 allows embedded null bytes so we should not use strlen() to fix up the data. The HTML format synthesizer can handle trailing null bytes just fine and can detect whether it deals with UTF-8 or UTF-16.
This should resolve issue #3983.

@freerdp-bot test


move port to 3001

so that client apps can use 3000

https://github.com/craftninja/exp-starter-api/pull/16


err: strconv.ParseFloat: parsing "1234\n": invalid syntax

What version of Go are you using (go version)?
$ go version 1.18.4
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
What did you do?
we tried to read a file which contains a value using ioutil.Readfile /os.Readfile and parse the value using strconv.ParseFloat(string(value), 64)
What did you expect to see?
it should convert to float
What did you see instead?
err: strconv.ParseFloat: parsing "1234\n": invalid syntax
code snippet :
`package main
import (
"fmt"
"os"
"strconv"
)
func main() {
file := "test.txt" //. contains 1234
dat, _ := os.ReadFile(file)
data, err := strconv.ParseFloat(string(dat), 64)
}

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


support multiple layers during the build process

Additionally keep track of the layer name.

resolved in #53


Luxon localizer Drag-and-Drop from outside

Check that this is really a bug

[X] I confirm

Reproduction link
CodeSandbox link
Bug description
It seams that Luxon localizer has some problems when when dragging and event from outside. Seams to be happening only in  Month view or in the All day section of the week and day views.

Anyone else having this issue?
N.B.: seams to be working fine when switching over to Moment
Expected Behavior
To work like with the moment localizer
Actual Behavior
throws an error
react-big-calendar version
^1.5.0
React version
^18.2.0
Platform/Target and Browser Versions
Electron ^19.0.5
Validations

[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

Please fork our CodeSandbox and recreate the issue for proper troubleshooting.

Here's the link for the sandbox fork 😉

Seems like the dragged event still have to have start and end set.
Should work with:
onDragStart={() => handleDragStart({ title: name, name, start: new Date(0), end: new Date(0) })}


Rewrites the logic to search in mentions list.

Fixes #1133

Description
Checklist

[ ] ~I have made corresponding changes to the documentation.~
[ ] ~I have updated the types definition of modified exports.~
[x] I have verified the functionality in some of the neeto web-apps.
[x] I have added the necessary label (patch/minor/major - If package publish
is required).

Reviewers

@AbhayVAshokan  _a please review.

Closing and reopening the PR to trigger a new deployment.


mLab failed to connect

com.mongodb.MongoCommandException: Command failed with error 18: 'auth failed' on server ds00031.mlab.com:00031. The full response is { "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 }
mongo:
  seeds:
  - host: ds00031.mlab.com
    port: 00031
  database: dbname
  credentials:
    userName: user
    password: password

Are you really running mongo on port 31?  I assume you intended 3001.

@amitmad is this just a configuration problem?

yes. mongolab not able to connect with yml config.

Closing, as this looks like a user configuration problem.  Please reopen if using the correct port does not work.


icon component

Coverage increased (+5.7%) to 76.749% when pulling 83ea0e01da5124ea21e46654c274c56a10d67a78 on NancyZhuJY:dev into 0d10f8e2ba54b05a2c8a7589621d1eec908ffdbc on ZhonganTechENG:dev.


Sometimes upon login the user gets "sign in failed" in console

Just tested this a bunch, seems it was an issue in early days of the account system but I cannot replicate it anymore.


jQuery-bootgrid display all records

I'm fetching data through Ajax, it is working great but it shows all records while I have set the limit to 10.
Row count is also correct, but it does not show the 10 records.

It works fine out of the box - that sounds like a defect with your Ajax code, not with Bootgrid. From your description I'd guess your server side code is not processing the row count correctly. The server must respond with the correct number of rows; Bootgrid will display precisely what you pass back in the JSON.
That is, the "row count" drop down sends a parameter to the server, and the server (your code) must parse that and return the correct number of rows. If it's returning "all rows", then the defect is yours.

Closing due to inactivity.


Add optimal transport to Geometric Deep Learning

I was wondering if this package is based on the  geometric deep learning by Michael Bronstein et.al.?  Can this package do the 5G(Grids,Graphs,Groups,Geodesics&Gauges) thing?
Is it possible to add a geometric understanding of deep learning into the arsenal? it basically uses optimal transport(Brenier's potential, Monge-Ampere PDE) to study geometric deep learning. and there are a great optimal transport course for this topic for reference.

Currently, this package is towards the goal of geometric deep learning by Michael Bronstein. However, most of the things in this package is not ready yet. For the 5G, Grids and Graphs are available.
It's welcome to contribute models from the paper a geometric understanding of deep learning into this package.

That sounds very exciting!!!
Right now, my skill is not up to contribute to the package, I will try to practice Julia more often, when I feel I am ready I will, till then perhaps also gonna need your help: )

@CaiYitao Do you refer this paper?

yeah, I am aware of this paper, and I like the idea of this paper, but haven't dug deep into it yet, I was thinking of applying a geometric understanding of deep learning with geometric deep learning /GNN

I just check the paper. I seems to analyze and establish the relationship between optimal transportation (OT) and generative adversarial networks (GANs). In this paper, it proposed a novel generative model AE-OT model, and it uses an autoencoder (AE) for manifold learning and OT map for probability distribution transformation. I am sure it is a kind of deep learning model, but should not under the umbrella of geometric deep learning. Although there are some relationship between geometric deep learning and OT, the relationship remains not mentioned in this paper.

ConfGF to be https://github.com/DeepGraphLearning/ConfGF? And SEGNN to be https://github.com/EnyanDai/SEGNN?

Yeah, ConfGF is that one, but SEGNN is this SEGNN
I think their method is pretty general not constrained by what presented in the paper AE-OT model and plausible cause this method developed together with Shingtung Yau(丘成桐）

I think it's OK they didn't aware of geometric deep learning developed by Bronstein et.al. I didn't go deeper in this paper but I think it is surely general enough to extend to geometric deep learning. However, this package should collect the models under the umbrella of geometric deep learning, at least. There might be some work to be done and we can have models in this package.

I am very glad and grateful that you are developing these amazing packages,  I am planning to use this package to write my master thesis, and I hope in the meantime I will be proficient enough to contribute : ).

The code for applying OT,GNN to protein analysis, was out here


New interface for get_scan_files to break dependency

Which issue does this PR close?
Closes https://github.com/apache/arrow-datafusion/issues/7357
Rationale for this change
I am trying to break DataFusion into smaller modules and to do so I need to disconnect DataSource and ExecutionPlan. However the API introduced in https://github.com/apache/arrow-datafusion/pull/7175 creates a new (explicit) dependency.
I would like to make an API that both allows for getting the scan files from @not-my-profile 's  usescase but also doesn't add this new explicit dependency.
For more details https://github.com/apache/arrow-datafusion/issues/7357
What changes are included in this PR?

Add PartitionedFileFinder that can find PartitionedFiles in arbitrary ExecutionPlan trees
Add some ::new() functions to make config easier to use
Update tests showing how this is used

Are these changes tested?
Yes
Are there any user-facing changes?
yes, this is both an API change (it is an alternate API to the one introduced in https://github.com/apache/arrow-datafusion/pull/7175)

Can someone please review this PR? Perhaps @tustvold or @crepererum ?

Closing in favor of https://github.com/apache/arrow-datafusion/pull/7487


Glob failing to filter out symlinks that do not match the pattern in 1.6.1

What am I doing wrong here. I keep getting a 'add' event for every single file in a path I'm doing a watch on with a glob pattern.
var glob = path.resolve(watchDirectory) + "/**/*.dot";
console.log("Glob pattern: \n"+glob);
chokidar.watch(glob, {ignoreInitial: false}).on('all', (event, path) => {
    console.log(event, path);
});

This outputs: (Notice the files being with 'add' events that don't have .dot extensions as per the glob pattern.
Glob pattern:

/Users/francoislaberge/dev/diagrams/**/*.dot
add /Users/francoislaberge/dev/diagrams/simple.dot
add /Users/francoislaberge/dev/diagrams/node_modules/.bin/electron
add /Users/francoislaberge/dev/diagrams/node_modules/electron-prebuilt/node_modules/.bin/extract-zip
add /Users/francoislaberge/dev/diagrams/node_modules/electron-prebuilt/node_modules/.bin/electron-download
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/rc
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/rimraf
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/strip-json-comments
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/har-validator
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/mkdirp
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/node-pre-gyp
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/nopt
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/semver
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/sshpk-sign
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/sshpk-conv
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/sshpk-verify
add /Users/francoislaberge/dev/diagrams/node_modules/fsevents/node_modules/.bin/uuid
...

I'm experiencing exactly the same issue - I have Node v7.1.0 and chokidar 1.6.1 on MacOS Sierra. It looks like Chokidar already has known issues with Node 7 (see #550).

I'm seeing this with Node v5.12.0 and chokidar 1.6.1 on OS X El Capitan.

@francoislaberge is simple.dot marked executable?  I think for some reason it's matching executable files, rather than everything.

@francoislaberge it doesn't look like it's matching everything -- just files that actually match your glob pattern and files marked executable.  You should change the title to "chokidar adds executable files that don't match glob"

I'm not sure if that's the case or if it was just picking up my binaries first before I cut off my copy/paste of the print out.
I no longer have this code setup anymore as I moved onto using another approach to work around it, otherwise I would verify if your theory is true. It certainly looks true from my report.

Should be mentioned that the executables are actually symlinks, and are handled by wh.filterDir, not wh.filterPath. They pass this, when they shouldn't. Unfortunately I have run out of time for debugging right now, but hopefully someone else can debug much quicker now that it's isolated.

So was this issue introduced in chokidar 1.6.1? Can you check whether reverting down to 1.6.0 resolves it?
The symlinks going to filterDir instead of filterPath came from https://github.com/paulmillr/chokidar/issues/530, but that solution may not have been vetted enough before going out.
Your last point about there being better ways to handle filterDir - sure, probably. The intention of that function is to tell readdirp whether to recurse into a directory or not, so it's intended to only rule things out very conservatively because the worst case is drilling down into dirs where none of the entries end up matching. You can see there's a globstar (**) short-circuit in there for situations like the one you described. But if you identify a better way, PR welcome.

Yes, reverting to 1.6.0 does resolve the issue.
I believe the proper way to fix this would be to check if the realpath that the symlink points to is a directory/file, and then use the appropriate filtering method rather than simply defaulting to dir filtering when a symlink is encountered.

Yes, but it's going to be a bit messy to work some new async-ness into there

Given that the filtering functions are used by readdirp, I don't think async is even supported. It'd have to use the sync variants either way, which greatly simplifies the implementation.

Avoiding any sync fs operations has been a cardinal rule here, but if there's no choice, then I guess that'll just be the penalty that has to be paid for symlinks.
But perhaps these should just not be filtered at the readdirp level and get handled elsewhere.

@birjolaxew wait, so if there's a directory symlink e.g. builds/latest -> builds/0.9.20, would files inside it match builds/latest/*, builds/0.9.20/*, or both?  I would think all paths scanned should be tested against the glob(s) without resolving symlinks.

@jedwards1211 A symlink is essentially the same thing as having a file in two places. If you have a directory latest which is a symlink to 0.9.20, then any files inside 0.9.20 also exist inside latest. If you watch both folders, you'll get two "changed" events every time a file inside 0.9.20 changes - because it's essentially two files being changed. If you only watch one, you'll only get the "changed" event related to that folder.
The issue here is that symlinks can also be files, while chokidar assumes that all symlinks are folders. This means file symlinks (like those in node_modules/.bin/) are filtered based on directory rules, not file rules.

@birjolaxew yes I understand how symlinks work.  I just wanted to make sure that it wasn't filtering on paths with all symlinks filtered out, because that would be a major problem.
Ideally chokidar should handle symlinks in exactly the same way as multiple hardlinks to the same file/directory, right?

@jedwards1211 Yes. Chokidar will handle symlink as if though they were folders/files - except for the issue described here.

I just ran into this as well.  I suggest 1.6.1 be reverted for now to fix the regression.  https://github.com/paulmillr/chokidar/commit/9eeecf605ba24798d90e93206d6867d8469320f7

The issue still exists on v3.0.2...

I just encountered this problem in 3.0.2. My system environment is macOS 10.14.5, because I use gulp in the project, gulp depends on chokidar, I can only ignore all symlink files by followSymlinks : false now.

If someone can make a reproducible repository with the issue, thay would help.

@paulmillr https://github.com/birjolaxew/chokidar-544

Am also having problems with this in 3.5.3.


Destructure shadow mis-reference

swc version
$ grep swc package.json
    "@swc/cli": "0.1.18",
    "@swc/core": "1.0.45",
    "swc-loader": "0.1.6",

Input
function foo(bar) {
  const { foo } = bar;
  return foo;
}

Output (formatted to prevent wrapping)
function _throw(e) {
    throw e;
}
function foo(bar) {
  var ref = bar ? bar :
    _throw(new TypeError("Cannot destructure 'undefined' or 'null'")),
    foo1 = ref.foo1;
  return foo1;
}

Problem
After destructuring, the variable foo is undefined.
Rather than allowing the inner foo to shadow the outer foo function, and getting its value from ref.foo, it references a non-existent ref.foo1.

why generate _throw though?

why generate _throw though?

What do you mean?
throw is a reserved word and throw will be changed to _throw if you target es3.
(Anyway, I found a bug. _throw is the name of a helper in swc)

@kdy1
I mean maybe output
function foo(bar) {
  var foo = bar.foo
  return foo;
}

is fine enough. Also Babel works like this. Is there any specific design intent on this behavior?

@kdy1
I mean maybe output
function foo(bar) {
  var foo = bar.foo
  return foo;
}

is fine enough. Also Babel works like this. Is there any specific design intent on this behavior?

@Austaras Hmm.. I think this case can be handled specially. (As accessing bar.foo throws if bar is null or undefined.). I'll fix it.


documentation inconsistencies about mutability

Since commit fd419dea965ff1ad3853f26f37e8d107c6ca096c, the docs have become inconsistent about whether LazyCell allows mutation. There are several places that claim it's permanently frozen once it's been initialized:

This crate provides a LazyCell struct which acts as a lazily filled Cell, but with frozen contents.

LazyCell: A lazily filled Cell, with frozen contents.

But with that commit, the borrow_mut method now allows it to be mutated, so it doesn't really make sense to describe it as having frozen contents anymore, does it?
That commit also resulted in this pretty confusing sentence:

The limitation of a LazyCell is that after it is initialized and shared, it can be modified.

I can't really figure out what that's trying to say. What does sharing have to do with it, and how is it a limitation to be able to modified?

/cc @matklad

I can't really figure out what that's trying to say. What does sharing have to do with it, and how is it a limitation to be able to modified?

Yeah, that's definitely confusing :) I think the best way to actually document this is to use the original formulation of completely frozen, once filled, which is like 99% correct and what you want most of the time.
The trick with borrow_mut is that, if you have &mut access to LazyCell, it actually acts more or less Option<T>, and you can do whatever you like with it. However, if you only have & access, then it has this peculiar semantics of transitioning from None to Some(value) once and then staying at the value.

Yeah the documentation is definitely confusing at the moment. I think matklad's suggested wording would be a good substitute, but I'm not sure how to accurately describe the &mut vs & mut difference in a clear way in the documentation. Thoughts?

I decided to add a separate commit (9d634d1fd9a21b7aa075d407bedf9fe77ba8b79f) documenting the LazyCell::borrow_mut mutability edge-case.


Logging tweaks

Global variable fix
warning fixes

#5 This could maybe be part of the tweaks, changing the enums to be LOG_ERROR instead of ERROR

#5 This could maybe be part of the tweaks, changing the enums to be LOG_ERROR instead of ERROR

I'll reopen the branch to work on it. It probably won't use the proposed names as this would clash with the logging macro.
#define LOG_ERROR(message) LOG(logging::Level::ERROR, message)