예제 #1
0
        public string GetToken(AppUser user, ProxyAppSettings setting, Guid sessionId)
        {
            string token = _jwtFactory.Build()
                           .Subject(user.Id.ToString())
                           .Id(sessionId)
                           .Audience(setting.InternalHostname)
                           .IssuedAt(DateTime.UtcNow)
                           .Encode();

            return(token);
        }