Esempio n. 1
0
        private Task <JwtToken> CreateJwtTokenAsync()
        {
            var jwtRequest = new JwtTokenRequest
            {
                Audience = new List <string> {
                    _application.ClientId.ToString()
                },
                Subject = _user.UserId.ToString()
            };

            return(_jwtTokenFactory.CreateJwtTokenAsync(jwtRequest));
        }
Esempio n. 2
0
        private async Task CreateJwtTokenAsync()
        {
            var jwtRequest = new JwtTokenRequest
            {
                Audience = new List <string> {
                    _code.ClientId.ToString()
                },
                Subject = _code.UserId?.ToString(),
                Scope   = _code.Scope
            };

            _jwtToken = await _jwtTokenFactory.CreateJwtTokenAsync(jwtRequest);
        }
Esempio n. 3
0
        private Task <JwtToken> CreateJwtTokenAsync()
        {
            var jwtRequest = new JwtTokenRequest
            {
                Audience = new List <string> {
                    _refreshToken.Application.ClientId.ToString()
                },
                Subject = _refreshToken.UserId.ToString(),
                Scope   = _scope
            };

            return(_jwtTokenFactory.CreateJwtTokenAsync(jwtRequest));
        }