public class OpenIDAuthenticationTest extends CrowdIDClientAcceptanceTestCase
It is a 3-webapp test that currently tests basic forms of OpenID authentication + SREG exchange.
CrowdWebTestCase.GenericPage, CrowdWebTestCase.TestContext
Modifier and Type | Field and Description |
---|---|
protected String |
OPENID_SERVER_URL |
protected String |
OPENIDSERVER_LOGIN_URL_ADMIN |
protected static String |
SERVER_NAME |
ADMIN_PW, baseUrl, CROWD_ADMIN_EMAIL_ADDRESS, CROWD_ADMIN_FULLNAME, CROWD_ADMIN_USER, CROWD_ADMINISTRATORS_GROUP, crowdBaseUrl, crowdConsole, crowdResourceBundle, specProperties
BACKUP_RESOURCE, BATCHED_TEST_RULE, COOKIE_ABSENT, i18n, IMMUTABLE_USER_NAME, IMMUTABLE_USER_PW, JSESSIONID_COOKIE, log, REMEMBER_ME_COOKIE, restAdminClient, SSO_COOKIE, TEST_USER_DISPLAYNAME, TEST_USER_NAME, TEST_USER_PW, testedProduct, testkitClient, webDriverRules
Constructor and Description |
---|
OpenIDAuthenticationTest() |
getApplicationName, getLocalTestPropertiesFileName, getResourceBundleName
getBaseUrl, getCrowdHome, getCurrentlyLoggedInCrowdUserFullName, getTestProperty, intendToModifyData, loginToCrowd, loginToCrowd, logoutFromCrowd, restoreBaseSetup, restoreCrowdFromXML, tearDown, useApp, useCrowd, verifyGroupDoesNotExistInCrowd, verifyGroupDoesNotExistInCrowdWithCaseSensitiveName, verifyGroupExistsInCrowd, verifyUserDoesNotExistInCrowd, verifyUserExistsInCrowd
addRequestHeader, assertButtonNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxSelected, assertElementIsDisabled, assertElementIsEnabled, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertFieldErrorPresentWithKey, assertInfoPresent, assertKeyInElement, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertLinkNotPresent, assertLinkPresent, assertLinkPresentWithKey, assertMatchInTable, assertRadioOptionNotPresent, assertSelectedOptionEquals, assertSelectedOptionValueEquals, assertSelectOptionsEqual, assertSuccessPresent, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleMatch, assertTitleNotEquals, assertWarningAndErrorNotPresent, assertWarningNotPresent, beginAt, checkCheckbox, checkCheckbox, clearCookies, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkInNavbar, clickLinkWithExactText, clickLinkWithKey, clickLinkWithText, clickRadioOption, closeBrowser, disableIpAddressValidation, equalToIgnoringWhiteSpace, findElementWithText, getBaseUrlIPv6, getElementById, getElementByXPath, getElementsByXPath, getElementTextById, getElementTextByXPath, getElementValueByID, getFinder, getMessage, getMessage, getName, getPageSource, getPageText, getPoller, getRestAssuredCookies, getTable, getTestContext, getText, getTextForList, gotoPage, isElementWithIdPresent, isTextPresent, log, scrapeTable, scrapeTable, scrapeTable, selectOption, selectOption, selectOptionBy, selectOptionByValue, seleniumCookieToRestAssuredCookie, setRadioButton, setResourceBundleName, setTextField, setWorkingForm, setWorkingForm, submit, submit, uncheckCheckbox, waitForElementById, waitUntilPageLoad
assertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, getBaseUrlWithoutPort, getCookie, getCookieOrThrow, getCurrentUrl, getDriver, getSsoCookieOrFail, getTestkitClient, hasCookie, hasSsoCookie, intendToModifyLdapData, loginAsExpiredPasswordUser, loginAsNonAdmin, loginAsNonAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdminWithRememberMe, loginAsUser, loginExpectingFailure, loginImmutableUser, loginImmutableUser, loginTestUser, loginTestUser, logout, manage, navigateToAndBind, navigateToUrl, waitForUrl, waitUntilAsyncFinished
protected String OPENIDSERVER_LOGIN_URL_ADMIN
protected String OPENID_SERVER_URL
protected static final String SERVER_NAME
public void setUp() throws Exception
setUp
in class ApplicationAcceptanceTestCase
Exception
public void tearDownApprovedSitesForAdmin()
protected void assertAtClientLoginPage()
protected void assertAtServerLoginPage()
protected void assertAtServerAllowDenyPage(String clientUrl, String serverUrl, String nickName, String fullName, String email)
protected void assertAtClientProfilePage(String serverUrl, String userName, String email, String userFullName)
public void openIDAuthenticationAllow()
public void openIDAuthenticationDeny()
public void openIDAuthenticationFailsWhenUsernamePaddedBeforeFinalSlash()
public void openIDAuthenticationStateless()
public void openIDAuthenticationStatelessAfterStatefulAuthentication() throws Exception
ServerManager.setCheckPrivateSharedAssociations(boolean)
is set to true (the
default) and the ServerAssociationStore
impl used does not generate ids which are
unique across all instances of the application.
This test specifically checks for this case, which otherwise would only manifest if the junit test execution order caused a stateless authentication test to run after a stateful authentication test.
Exception
public void openIDAuthenticationImmediate_fail()
public void openIDAuthenticationImmediateSucceedsAfterAllowAlwaysApproval()
public void openIDClientShouldWorkWithUrlsWhichContainUTF8Characters() throws UnsupportedEncodingException
UnsupportedEncodingException
public void openIDClientShouldWorkWithUrlInEncodedFormat() throws UnsupportedEncodingException
UnsupportedEncodingException
public void openIDTrimsUrlsBeforeAuthenticatingRequest()
public void serverSelectsIdentityForLoggedInUserWhenOpEndpointIsProvided()
public void serverSelectsIdentityForLoggedInUserWhenOpEndpointIsProvidedWithNonAdminUser()
public void serverSelectsIdentityForLoggedInUserWhenImmediateCheckIsMade()
public void requiredAttribsCorrectlyEscaped() throws UnsupportedEncodingException
UnsupportedEncodingException
public void shouldGetBadRequestIfUrlIsIncorrectlyEscaped() throws MalformedURLException, IOException
MalformedURLException
IOException
public void requiredAttribsCorrectlyEscapedWhenRedirecting() throws MalformedURLException, IOException
MalformedURLException
IOException
public void ableToAuthenticateWithPlusInUsername() throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2021 Atlassian. All rights reserved.