I'm using some custom claims that may take some time to get.
If I get your code right getClaims() is expected to return all possible claims, but I'd like to return only those requested by current token scopes. Different access tokens have different set of scopes.
Is there a way I can get the requested scopes from inside my getClaims() implementation? If not, I suggest to pass the list of requested scopes to this method.
I'm using some custom claims that may take some time to get.
If I get your code right
getClaims()
is expected to return all possible claims, but I'd like to return only those requested by current token scopes. Different access tokens have different set of scopes.Is there a way I can get the requested scopes from inside my
getClaims()
implementation? If not, I suggest to pass the list of requested scopes to this method.