コード例 #1
0
        public async Task ReceiveAsync(AuthenticationTokenReceiveContext context)
        {
            var refreshToken = _refreshTokenRepository.Read().FirstOrDefault(e => e.TokenId == context.Token);

            if (refreshToken != null)
            {
                context.DeserializeTicket(refreshToken.ProtectedTicket);

                _refreshTokenRepository.Delete(refreshToken.Id);
            }
        }