예제 #1
0
        private string GetSamlTokenByGss(ServiceGateway service, ServerDto serverDto)
        {
            var gssTicket = KerberosHelper.GetKerberosContext(txtGssUsername.Text, txtGssPassword.Text, txtGssDomain.Text, txtGssSpn.Text);
            var token     = service.SamlTokenService.GetSamlTokenFromGss(serverDto, gssTicket);

            return(token);
        }
예제 #2
0
        private AuthTokenDto GetJwtTokenByGssTicket(ServiceGateway service, ServerDto serverDto)
        {
            var gssTicket        = KerberosHelper.GetKerberosContext(txtGssUsername.Text, txtGssPassword.Text, txtGssDomain.Text, txtGssSpn.Text);
            var gssBase64Encoded = Uri.EscapeDataString(gssTicket);

            return(service.JwtTokenService.GetTokenFromGssTicket(serverDto, gssBase64Encoded, Guid.NewGuid().ToString()));
        }