bijukunjummen / oauth2-boot2

Sample demonstrating OAuth2/Open ID Connect with Spring Boot 2
19 stars 7 forks source link

resource server for angular App and keycloak #1

Open xmlking opened 6 years ago

xmlking commented 6 years ago

@bijukunjummen can you help us how to build spring boot 1.5 resource server that serve REST API for Angular app that already got access_token/id_token/refresh_token from keycloak ?

in this example , the 6 , 7 , 8 steps ...

bijukunjummen commented 6 years ago

Hey @xmlking , that would be fairly simple right, all you have to do is to add an Authorization header with a value of bearer <access token> when making a call to the resource server.

xmlking commented 6 years ago

thanks @bijukunjummen looked at your spring boot 2.0 resource server security config oauth-uaa-sample-boot2 do you have ResourceServer example for spring boot 1.5.x ? last time when I tried, I messed up with security config/gradle dependencies and it never worked :(

My hosted OpenID Connect server is here https://keycloak-is360.7e14.starter-us-west-2.openshiftapps.com/auth/realms/is360/.well-known/openid-configuration (username: sumo3 password: demo ) UI App is here : https://xmlking.github.io/nx-starter-kit/index.html

Now looking for quick way to set up resource server with spring boot 1.5x