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 oauth2
save access_token here tell service
1 right??
can find in code of these part??
thank you.
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
Post a Comment