-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.22' into release/3.0-beta
# Conflicts: # ontrack-repository-impl/src/main/java/net/nemerosa/ontrack/repository/config/MainDBInitConfig.java
- Loading branch information
Showing
96 changed files
with
2,368 additions
and
1,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Enabling Security Remember Me feature | ||
===================================== | ||
|
||
* How to enable this feature with a LDAP authentication source? | ||
|
||
See http://stackoverflow.com/questions/24745528/spring-security-ldap-and-remember-me#24853922 | ||
|
||
* How to test? | ||
|
||
Login normally. | ||
Delete the `JSESSIONID` cookie, and keep the `remember-be` one. | ||
Close the page | ||
Open the page | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ck-acceptance/src/test/groovy/net/nemerosa/ontrack/acceptance/ACCBrowserLoginOn403.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package net.nemerosa.ontrack.acceptance | ||
|
||
import net.nemerosa.ontrack.acceptance.browser.pages.AccountManagementPage | ||
import net.nemerosa.ontrack.acceptance.browser.pages.HomePage | ||
import net.nemerosa.ontrack.acceptance.support.AcceptanceTestSuite | ||
import org.junit.Test | ||
|
||
import static net.nemerosa.ontrack.acceptance.browser.Browser.browser | ||
|
||
/** | ||
* GUI test which tests the login redirection in case of page not authorised | ||
*/ | ||
@AcceptanceTestSuite | ||
class ACCBrowserLoginOn403 extends AcceptanceTestClient { | ||
|
||
|
||
@Test | ||
void 'Login redirection'() { | ||
|
||
browser { browser -> | ||
// Tries to go to unauthorised page | ||
browser.goTo AccountManagementPage, [:], false | ||
// This should be rejected - and we should be on the login page | ||
browser.screenshot 'access-rejected' | ||
HomePage home = browser.page(HomePage) | ||
home.header.checkOnLogin() | ||
// Now, we login as admin | ||
home.header.doLogin('admin', adminPassword, 3000) | ||
// And we should be redirected to the account management page | ||
browser.screenshot 'access-granted' | ||
browser.at AccountManagementPage | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.