Planning to setup one IdentityServer and have it configured for multiple resources like:
internal static IEnumerable<ApiResource> GetApiResources()
{
return new List<ApiResource>
{
new ApiResource()
{
Name = "API 1",
DisplayName = "API 1",
Description = "API 1 Access",
Scopes = new List<Scope>()
{
new Scope("public"), new Scope("write")
}
},
new ApiResource
{
Name = "API 2",
DisplayName = "API 2",
Description = "API 2 Access",
Scopes = new List<Scope>
{
new Scope("public"), new Scope("write")
}
}
};
}
then Client 1 will have an access to API 1 only and Client 2 will have an access to API 2 only. Both clients will have the public scope.
Would something like above will work or should I change the name of the scopes and make it unique for the each API resource?
Is using 1 Identity/Authorization Server for multiple API's is a bad idea?