oauth 2.0 - Where did access_token saved? -


i know security oauth2 send access_token client app,so client app use these access_token go service.
question : how service know access_token sent client right??
in pic below,seems security oauth2 , service use db/memory communicate
security oauth2save access_token here tell service 1 right??
can find in code of these part??
thank you.

enter image description here

from within client application, likely, going use resttemplate communicate resource server. make use of spring's oauth capabilities, rest template has extend spring's oauth oauth2resttemplate. 1 of fields of resttemplate implementation oauth2clientcontext. spring stores access_token.

by time restclient call resource endpoint, request object built containing oauth access token.

check method out: oauth2resttemplate.createrequest(uri uri, httpmethod method)


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -