User is authenticated but where is the access token?

后端 未结 2 769
情深已故
情深已故 2021-02-06 02:34

I have a web Application which authenticates a user to an Identity Server 4, using an implicit client. I need the access token for this user so that I can make a call to anoth

2条回答
  •  后悔当初
    2021-02-06 03:05

    Use options.SaveTokens = true then grab your access token from the claims or use HttpContext.GetTokenAsync here's the link to the blogpost with example: https://www.jerriepelser.com/blog/accessing-tokens-aspnet-core-2/

提交回复
热议问题