royclarkson / spring-rest-service-oauth

A simple OAuth protected REST service built with Spring Boot and Spring Security OAuth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend Oauth2 Example

opened this issue · comments

Hello out there,

currently I do my first steps with Spring Security. I started with the Oauth2 example project.
But I reached a point where one Oauth2Resource has to talk to another Resource.

I read a lot and tried even more, but I dont get it..
So would it possible to extend the example with another resource which just calls the exisiting resource with an Oauth2RestTemplate?

That would be awesome, thanks

I wrote little example that works with Roy's spring-rest-service-oauth, here is the link
https://github.com/mariubog/oauth-client-sample, I am not sure if this is what you looking for though

Sorry, I posted in the wrong window >.< But I will give it a try, thanks

No problem, the example I gave you uses Oauth2RestTemplate as the class to establish connection with oauth service

@mariubog thanks for sharing!