use of org.apereo.cas.authentication.HttpBasedServiceCredential in project cas by apereo.
the class KryoTranscoderTests method internalProxyTest.
private void internalProxyTest(final String proxyUrl) throws MalformedURLException {
final Credential proxyCredential = new HttpBasedServiceCredential(new URL(proxyUrl), RegisteredServiceTestUtils.getRegisteredService("https://.+"));
final TicketGrantingTicket expectedTGT = new MockTicketGrantingTicket(USERNAME);
expectedTGT.grantServiceTicket(ST_ID, null, null, false, true);
assertEquals(expectedTGT, transcoder.decode(transcoder.encode(expectedTGT)));
}
Aggregations