Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created August 5, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/2d7f8c3343008f26d3253df9bf807ad8 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/2d7f8c3343008f26d3253df9bf807ad8 to your computer and use it in GitHub Desktop.
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