zalando-stups / play-zhewbacca

Play! framework library to protect REST endpoint by OAuth2 token verification - THIS PROJECT IS NOT LONGER ACTIVELY MAINTAINED
MIT License
22 stars 13 forks source link

Add `realm` to TokenInfo object #57

Closed ePaul closed 5 years ago

ePaul commented 5 years ago

The TokenInfo documentation linked in the README contains several fields which are not in zhewbacca's TokenInfo object.

One which I just noticed as missing is the realm field. As discussed in Realms, an uid is only unique within one realm, and also the meaning of other fields might depend on the realm.

In my case, there is an important distinction between the /services and /employees realm (not even mentioning /customers).

ePaul commented 5 years ago

I can't add labels to issues, one of the maintainers please do this for me.

I added PR #58 for this soon, as it seems quite easy.