IdentityServer4 - Using Refresh Tokens after following the Quickstart for Hybrid MVC

后端 未结 6 1311
感动是毒
感动是毒 2020-12-08 03:07

I\'ve followed the Quickstart in the documentation page and have a working configuration of three services (IdentityServer, one Api service, one ASPNET MVC application) usin

6条回答
  •  爱一瞬间的悲伤
    2020-12-08 03:49

    The link you provided to https://github.com/mderriey/TokenRenewal/blob/master/src/MvcClient/Startup.cs really helped me!

    The gotcha was in the AddOpenIdConnect section. The event you want is not the OnTokenValidated event. You should use the OnTokenResponseReceived event. It's at that point you'll have a proper access_token and refresh_token to add to the cookie.

提交回复
热议问题