Search in sources :

Example 16 with SimpleTestTokenAuthenticator

use of org.pac4j.http.credentials.authenticator.test.SimpleTestTokenAuthenticator in project pac4j by pac4j.

the class CookieClientTests method testHasDefaultProfileCreator.

@Test
public void testHasDefaultProfileCreator() {
    final CookieClient cookieClient = new CookieClient("testcookie", new SimpleTestTokenAuthenticator());
    cookieClient.init();
}
Also used : SimpleTestTokenAuthenticator(org.pac4j.http.credentials.authenticator.test.SimpleTestTokenAuthenticator) Test(org.junit.Test)

Example 17 with SimpleTestTokenAuthenticator

use of org.pac4j.http.credentials.authenticator.test.SimpleTestTokenAuthenticator in project pac4j by pac4j.

the class DirectDigestAuthClientTests method testHasDefaultProfileCreator.

@Test
public void testHasDefaultProfileCreator() {
    final DirectDigestAuthClient digestAuthClient = new DirectDigestAuthClient(new SimpleTestTokenAuthenticator());
    digestAuthClient.init();
}
Also used : SimpleTestTokenAuthenticator(org.pac4j.http.credentials.authenticator.test.SimpleTestTokenAuthenticator) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)17 SimpleTestTokenAuthenticator (org.pac4j.http.credentials.authenticator.test.SimpleTestTokenAuthenticator)17 TokenCredentials (org.pac4j.core.credentials.TokenCredentials)8 MockWebContext (org.pac4j.core.context.MockWebContext)4 CommonProfile (org.pac4j.core.profile.CommonProfile)4 Cookie (org.pac4j.core.context.Cookie)1 DigestCredentials (org.pac4j.http.credentials.DigestCredentials)1