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); }
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())); }