Spring Boot based Application ‘A’ is responsible for authenticating the user and storing appropriate “user access token” as a HTTP Cookie for domain “mydomain.com”. For example, Context path of the application is: https://mydomain.com/user/
Spring Boot based Application ‘B’ exposes RestFul services under the same domain “mydomain.com” that expects “User Access Token” in header as part of incoming request. For example, Context path of the application is: https://mydomain.com/userprofile/
How can i validate the OKTA issued “User Access Token” using Spring Boot for accessing RestFul services provided by Application ‘B’ ?
Thanks, i was able to get it working using /introspect endpoint couple of days back. I have another issue now.
How can i use two Resource Servers and secure endpoints. For example: I have a combination of clientIdA, secretA and resourceserverA. I want to use this combination to secure my API’s.
I have another combination of clientIdB, secretB and resourceserverB. I want to use this combination to secure my swagger and actuators etc.
Please can you suggest the resource server configuration and security configuration.
Hi, please see below my current configuration. I want to secure swagger using different client,secret and auth server (I don’t want to rely on scopes or role) compared to my other user facing REST API’s.
OAUTH2 Server
security.oauth2.client.clientId=xxxxxxxxxxxxx
security.oauth2.client.clientSecret=xxxxxxxxxxxxxxxxxxxxxx
security.oauth2.resource.tokenInfoUri=https://xxxxxxxxxxx/oauth2/xxxxxxxxxxxxxx/v1/introspect