简体   繁体   中英

Get Access token in Spring Security

I am working under login to Google via OAuth2 spring-security I was successfully login via oauth2 and received Principal, but in my project requirements, I need also set to user principal access token, how can I do this?

Thank you, for you help

If you can explain your scenario more, I can help better. But generally in Spring Security you have to specify the Authorities for each of your system roles to have that user access the specified level.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM