-
Notifications
You must be signed in to change notification settings - Fork 4k
Multiple resource servers with multiple remote token services #1018
Comments
We are looking for something similar, please share if you found a solution. thanks. |
@dsyer could you please let us if the above is possible. In our scenario we are securing api's by two auth servers in one spring boot application.
|
There’s a sample with multiple resource servers in this project I think https://github.com/spring-projects/spring-security-oauth/blob/master/tests/annotation/multi/README.md. But you might be better off using https://github.com/spring-projects/spring-security since this project is now in maintenance mode. |
It's bleeding edge, having been merged ~5 days ago in spring-projects/spring-security#6977, but |
thanks @DeCaMil we will look into it. |
FYI |
@vikramcc2017 - Have find a solution for this? I'm stuck in same scenario except will be using same endpoints going against both resource server
|
@apatelWU we used both Spring Security OAuth and Spring Security for Resource server and configured security for end points refer to Resource server support section https://github.com/spring-projects/spring-security/wiki/OAuth-2.0-Features-Matrix |
For this, I will have to create multiple resource server with different filter-order (internal=3 & external= 4), and have both resource server(internal and external) refers to same endpoint (/api/**). In this case, if the token is coming from external auth server(OKTA) which will be validate against internal resource server due to priority and same endpoint resulting always in "INVALID TOKEN ERROR" |
Did anyone find a solution for this using the same resource server? |
Can I implement more than one RemoteTokenServices in the the resource server, so every resource has it's own client_id and client_secret, I implemented two RemoteTokenServices but the List of ResourceServerConfigurer shows the last RemoteTokenServices added which means there is only one object of the RemoteTokenServices and that means only one client_id and client_secret in the system.
is that right?
here is my ResourceServerConfig:
`
`
The text was updated successfully, but these errors were encountered: