Skip to content

Instantly share code, notes, and snippets.

@satish860
Created November 15, 2022 05:50
Show Gist options
  • Save satish860/5a56c0e9eca6b66fb639e156edff8f48 to your computer and use it in GitHub Desktop.
Save satish860/5a56c0e9eca6b66fb639e156edff8f48 to your computer and use it in GitHub Desktop.
builder.Services.AddIdentityServer(options =>
{
// https://docs.duendesoftware.com/identityserver/v6/fundamentals/resources/api_scopes#authorization-based-on-scopes
options.EmitStaticAudienceClaim = true;
})
.AddInMemoryIdentityResources(Config.IdentityResources)
.AddInMemoryApiScopes(Config.ApiScopes)
.AddInMemoryClients(Config.Clients)
.AddTestUsers(TestUsers.Users); // Just add the user here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment