Guest User

Untitled

a guest
May 14th, 2020
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. new Client
  2.                 {
  3.                     ClientId = "spa-client",
  4.                     ClientName = "SPA",
  5.                     RequireClientSecret = false,
  6.                     AllowedGrantTypes = GrantTypes.Code,
  7.                     RequirePkce = true,
  8.                     AllowAccessTokensViaBrowser = false,
  9.                     RequireConsent = false,
  10.  
  11.                     RedirectUris = { "https://localhost:44370/signin-callback", "http://localhosts:44370/assets/silent-callback.html" },
  12.                     PostLogoutRedirectUris = { "https://localhost:44370/signout-callback" },
  13.                     AllowedCorsOrigins =     { "https://localhost:44370" },
  14.  
  15.                      AllowedScopes =
  16.                     {
  17.                         IdentityServerConstants.StandardScopes.OpenId,
  18.                         IdentityServerConstants.StandardScopes.Profile,
  19.                     },
  20.                     AccessTokenLifetime = 600
  21.                 }
Add Comment
Please, Sign In to add comment