简体   繁体   中英

Identity Server 4 store access token for subsequent requests

I am logging in against identity server and getting a token back to a web application. Then i am getting the token and sending to an api. All works well. But i want to capture this token to use it for subsequent requests without having to call this line in controller actions. How do i do this?

 var accessToken = await HttpContext.GetTokenAsync("access_token");

See this question for details now how to achieve that.

Also do check out this article

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