Created
December 6, 2017 14:12
-
-
Save HamidMosalla/ddc4e8ea265ef1c868a0d182c19f3c9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IEnumerable<Client> GetClients() | |
{ | |
return new List<Client> | |
{ | |
new Client | |
{ | |
ClientId = "mvc", | |
ClientName = "MVC Client", | |
AllowedGrantTypes = GrantTypes.HybridAndClientCredentials, | |
RequireConsent = false, | |
ClientSecrets = | |
{ | |
new Secret("secret".Sha256()) | |
}, | |
RedirectUris = {"http://localhost:5002/signin-oidc"}, | |
PostLogoutRedirectUris = {"http://localhost:5002/signout-callback-oidc"}, | |
AllowedScopes = | |
{ | |
IdentityServerConstants.StandardScopes.OpenId, | |
IdentityServerConstants.StandardScopes.Profile, | |
"Api1" | |
}, | |
AllowOfflineAccess = true, | |
AlwaysSendClientClaims = true, | |
AlwaysIncludeUserClaimsInIdToken = true | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment