Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Support expressions to check 'realms'.

Latest
Compare
Choose a tag to compare
@jbellmann jbellmann released this 05 Feb 11:41
· 142 commits to master since this release

Expression-Support for 'realm'

This release bring support for realm-checks in expressions. An example can be seen here. For configuration have look at this line.

You can now define expressions like:

  • #oauth2.hasRealm('/customrealm')
  • #oauth2.hasAnyRealm('/customrealm','nextCustomRealm','howManyRealmsDoYouHaveMan')

You are also able to combine them:

  • (#oauth2.hasRealm('/customrealm') && #oauth2.hasScope('uid'))
  • (#oauth2.hasScope('uid') && #oauth2.hasAnyRealm('/customrealm','nextCustomRealm','howManyRealmsDoYouHaveMan'))

But to make the last expression a bit shorter, we also provide something like

  • #oauth2.hasUidScopeAndRealm('/customrealm')
  • #oauth2.hasUidScopeAndAnyRealm('/customrealm','nextCustomRealm','howManyRealmsDoYouHaveMan')

PR's merged

  • #24 thanks to Lukas Niemeier
  • #22 see above for description
  • #21 'choose request-factory by dependencies in classpath'

Thanks to all for reporting issues and PR's.