コード例 #1
0
        public override async Task ReceiveAsync(AuthenticationTokenReceiveContext context)
        {
            //从redis中获取新的Token
            string value = await refreshTokenRepository.GetAccessTokenByRefreshToken(context.Token);

            if (!string.IsNullOrEmpty(value))
            {
                context.DeserializeTicket(value);
            }
        }