How to write oauth client in spring? -


i find example online, use curl or link such http://localhost:8080/demo4ssh-security-oauth2/oauth/token?client_id=mobile_1&client_secret=secret_1&grant_type=password&username=wangwu&password=234567 test oauth.
wil access token.
, use http://localhost:8080/demo4ssh-security-oauth2/json?access_token=5aa5e5f9-43eb-49e3-8149-69406884cbd9 resource
how can 2 actions in spring mvc code??
have no concept start?
see spring security oauth2 example (sparklr , tonr).
still can't figure out write actions in tonr.
please give me simple example or explain how this, thank you

it's provided spring. check out springoauth2resttemplate , enableoauth2client annotations.

it's suggested first have idea oauth2 dance have better understanding. suggested blog.

related sof question illustrate how configure , user oauth2 protected resource.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -