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 #58

Closed ePaul closed 5 years ago

ePaul commented 5 years ago

This allows controllers to extract the realm and do specific logic based on that. In the future, it might also be possible to use this in rules.

As I don't yet understand how the rules work, I didn't try to add anything to the rules stuff.

Fixes #57.

ePaul commented 5 years ago

My commit messages start with a space, because my git commit message editor is ignoring lines starting with #. If this is not acceptable, I can try to change it.

I also added some eclipse-specific files to the .gitignore file. I can undo that too, if wished.

codecov-io commented 5 years ago

Codecov Report

Merging #58 into master will increase coverage by 0.1%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #58     +/-   ##
=========================================
+ Coverage   96.66%   96.77%   +0.1%     
=========================================
  Files          12       12             
  Lines         120      124      +4     
  Branches        8        8             
=========================================
+ Hits          116      120      +4     
  Misses          4        4
Impacted Files Coverage Δ
...c/main/scala/org/zalando/zhewbacca/TokenInfo.scala 100% <100%> (ø) :arrow_up:
...ala/org/zalando/zhewbacca/TokenInfoConverter.scala 100% <100%> (ø) :arrow_up:
...ala/org/zalando/zhewbacca/OAuth2AuthProvider.scala 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c010509...4e58071. Read the comment docs.