okta-spring-boot icon indicating copy to clipboard operation
okta-spring-boot copied to clipboard

Idea: Allow for AuthoritiesProvider to be used for Resource Servers

Open bdemers opened this issue 3 years ago • 1 comments

NOTE: This doesn't work, I was just putting thoughts down, and it ended up being a be more complicated:

TODO:

  • There is probably a better Spring Security abstraction for all of this
  • Need to check to see if returning a Converter bean will inject correctly everywhere (including with native images)
  • Need to implement something similar for opaque tokens
  • Need to add tests that will make sure scope authorities and claim/group authorities are merged correctly
  • The new method in AuthoritiesProvder's return type doesn't match the other very related method in this interface (and it still doesn't cover the opaque token use case)

Related: #160

bdemers avatar Jan 27 '22 16:01 bdemers

NOTE: Test fail, see comment above this needs some work, It's mostly here to get the conversation going about how we want to handle this (and to see if there is a better way to implement this with newer versions of Spring Sec)

bdemers avatar Jan 27 '22 16:01 bdemers