I am setting up Identity Server 4, and I am not getting the relationship between scopes, API Resources, and Identity Resources. My understanding was that an API Resource could hold the collection of scopes, and the Identity Resource could hold the possible claims.
I call /connect/token to get a JWT, and it seems to only use the scope if I have defined it as a client attribute. Also, it only seems to return claims that I have directly added to the client.
What is the purpose of Identity Resources, and API Resources?