public abstract class ClientIT extends junit.framework.TestCase implements TestsConstants
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
BAD_JSON, BAD_USERNAME, CALLBACK_URL, CLIENT_NAME, CODE, ELEMENT, ELEMENT2, FAKE_VALUE, FIELDS, FIRSTNAME, FIRSTNAME_VALUE, GOOD_USERNAME, GOOD_USERNAME2, GOOGLE_URL, HEADER_NAME, ID, INT_ID, KEY, LIMIT, LOGIN_URL, MILLIS_BETWEEN_CLEANUPS, MULTIPLE_USERNAME, NAME, NAMESPACE, PAC4J_BASE_URL, PAC4J_URL, PARAMETER_NAME, PASSWORD, PATH, PREFIX_HEADER, REALM_NAME, ROLE, SALT, SCOPE, SECRET, STRING_ID, TITLE, TOKEN, TYPE, USERNAME, VALUE, VERIFIER| Constructor and Description |
|---|
ClientIT() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertCommonProfile(org.pac4j.core.profile.UserProfile userProfile,
String email,
String firstName,
String familyName,
String displayName,
String username,
org.pac4j.core.profile.Gender gender,
Locale locale,
String pictureUrl,
String profileUrl,
String location) |
protected abstract String |
getCallbackUrl(com.gargoylesoftware.htmlunit.WebClient webClient,
com.gargoylesoftware.htmlunit.html.HtmlPage authorizationPage) |
protected String |
getCallbackUrlForCancel(com.gargoylesoftware.htmlunit.html.HtmlPage authorizationPage) |
protected abstract org.pac4j.core.client.Client |
getClient() |
protected abstract org.pac4j.core.client.ClientType |
getClientType() |
protected org.pac4j.core.profile.UserProfile |
getCredentialsAndProfile(org.pac4j.core.client.Client client,
org.pac4j.core.context.WebContext context) |
protected javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
protected javax.servlet.http.HttpServletResponse |
getHttpServletResponse() |
protected org.pac4j.core.context.J2EContext |
getJ2EContext() |
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
getRedirectionPage(com.gargoylesoftware.htmlunit.WebClient webClient,
org.pac4j.core.client.Client<?,?> client,
org.pac4j.core.context.J2EContext context) |
protected org.pac4j.core.client.IndirectClient |
internalTestClone(org.pac4j.core.client.IndirectClient oldClient) |
protected boolean |
isCancellable() |
protected boolean |
isJavascriptEnabled() |
protected void |
registerForKryo(com.esotericsoftware.kryo.Kryo kryo) |
void |
testAuthenticationAndUserProfileRetrieval() |
void |
testCancelAuthentication() |
void |
testClientType() |
void |
testMissingCallbackUrl() |
protected void |
updateContextForAuthn(com.gargoylesoftware.htmlunit.WebClient webClient,
com.gargoylesoftware.htmlunit.html.HtmlPage redirectionPage,
org.pac4j.core.context.J2EContext context) |
protected void |
updateContextForCancel(com.gargoylesoftware.htmlunit.html.HtmlPage redirectionPage,
org.pac4j.core.context.WebContext context) |
protected abstract void |
verifyProfile(org.pac4j.core.profile.UserProfile userProfile) |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringprotected abstract org.pac4j.core.client.ClientType getClientType()
public void testClientType()
public void testMissingCallbackUrl()
protected org.pac4j.core.client.IndirectClient internalTestClone(org.pac4j.core.client.IndirectClient oldClient)
public void testAuthenticationAndUserProfileRetrieval()
throws Exception
Exceptionprotected org.pac4j.core.context.J2EContext getJ2EContext()
protected javax.servlet.http.HttpServletRequest getHttpServletRequest()
protected javax.servlet.http.HttpServletResponse getHttpServletResponse()
protected void updateContextForAuthn(com.gargoylesoftware.htmlunit.WebClient webClient,
com.gargoylesoftware.htmlunit.html.HtmlPage redirectionPage,
org.pac4j.core.context.J2EContext context)
throws Exception
Exceptionprotected void registerForKryo(com.esotericsoftware.kryo.Kryo kryo)
protected boolean isJavascriptEnabled()
protected abstract org.pac4j.core.client.Client getClient()
protected com.gargoylesoftware.htmlunit.html.HtmlPage getRedirectionPage(com.gargoylesoftware.htmlunit.WebClient webClient,
org.pac4j.core.client.Client<?,?> client,
org.pac4j.core.context.J2EContext context)
throws Exception
Exceptionprotected abstract String getCallbackUrl(com.gargoylesoftware.htmlunit.WebClient webClient, com.gargoylesoftware.htmlunit.html.HtmlPage authorizationPage) throws Exception
Exceptionprotected org.pac4j.core.profile.UserProfile getCredentialsAndProfile(org.pac4j.core.client.Client client,
org.pac4j.core.context.WebContext context)
throws Exception
Exceptionprotected abstract void verifyProfile(org.pac4j.core.profile.UserProfile userProfile)
protected void assertCommonProfile(org.pac4j.core.profile.UserProfile userProfile,
String email,
String firstName,
String familyName,
String displayName,
String username,
org.pac4j.core.profile.Gender gender,
Locale locale,
String pictureUrl,
String profileUrl,
String location)
protected boolean isCancellable()
protected void updateContextForCancel(com.gargoylesoftware.htmlunit.html.HtmlPage redirectionPage,
org.pac4j.core.context.WebContext context)
throws Exception
ExceptionCopyright © 2016. All Rights Reserved.