Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/Configuration.cs Secret

Created Aug 5, 2018
Embed
What would you like to do?
public static class Configuration
{
public static IEnumerable<ApiResource> ApiResources = new List<ApiResource>
{
new ApiResource("auth.web.api")
};
public static IEnumerable<Client> Clients = new List<Client>
{
new Client
{
ClientId = "ApiClient",
AllowedGrantTypes = GrantTypes.ClientCredentials,
ClientSecrets = new [] { new Secret("apisecret".ToSha256()) },
AllowedScopes = new [] { "auth.web.api" }
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.