What OpenID Connect provider should do, if client requested scopes for many audiences? For example:
Api Resource A use these scopes: test.read
Api Resource B use these scopes: test.write
Client can request test.read and test.write, he has been allowed to use both. But now what to do with audience in access token, if client requested test.read and test.write? Audience should be only one, so I can't do something like it:
{
"audience": "ApiResourceA ApiResourceB"
}
What does the OIDC provider have to do in this case?