forked from apereo/cas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix build; support audit log for account profile page
- Loading branch information
Showing
32 changed files
with
274 additions
and
82 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
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 was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
ci/tests/puppeteer/scenarios/pm-account-profile/accounts.json
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,10 @@ | ||
{ | ||
"casuser" : { | ||
"email" : "[email protected]", | ||
"password" : "Mellon", | ||
"phone": "1234567890", | ||
"securityQuestions" : { | ||
"Favorite Food" : "Salad" | ||
} | ||
} | ||
} |
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,37 @@ | ||
const puppeteer = require('puppeteer'); | ||
const cas = require('../../cas.js'); | ||
|
||
(async () => { | ||
const browser = await puppeteer.launch(cas.browserOptions()); | ||
|
||
const page = await cas.newPage(browser); | ||
await cas.goto(page, "https://localhost:8443/cas/login"); | ||
await cas.loginWith(page, "casuser", "Mellon"); | ||
await page.waitForTimeout(1000) | ||
await cas.assertCookie(page); | ||
|
||
await cas.goto(page, "https://localhost:8443/cas/account"); | ||
await page.waitForTimeout(1000) | ||
|
||
await cas.click(page, "#linkOverview") | ||
await page.waitForTimeout(1000) | ||
|
||
await cas.click(page, "#linkAttributes") | ||
await page.waitForTimeout(1000) | ||
|
||
await cas.click(page, "#linkServices") | ||
await page.waitForTimeout(1000) | ||
|
||
await cas.click(page, "#linkSecurityQuestions") | ||
await page.waitForTimeout(1000) | ||
await cas.assertVisibility(page, "#securityQuestionsTable") | ||
|
||
await cas.click(page, "#linkAuditLog") | ||
await page.waitForTimeout(1000) | ||
|
||
await cas.click(page, "#linkPasswordManagement") | ||
await page.waitForTimeout(1000) | ||
await cas.assertCookie(page, false); | ||
|
||
await browser.close(); | ||
})(); |
16 changes: 16 additions & 0 deletions
16
ci/tests/puppeteer/scenarios/pm-account-profile/script.json
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,16 @@ | ||
{ | ||
"dependencies": "audit-jdbc,pm-webflow", | ||
"properties": [ | ||
"--CasFeatureModule.AccountManagement.enabled=true", | ||
|
||
"--cas.audit.engine.enabled=true", | ||
|
||
"--cas.server.name=https://localhost:8443", | ||
"--cas.server.prefix=${cas.server.name}/cas", | ||
|
||
"--cas.view.authorized-services-on-successful-login=true", | ||
"--cas.service-registry.core.init-from-json=true", | ||
"--cas.authn.pm.json.location=file:${PWD}/ci/tests/puppeteer/scenarios/${SCENARIO}/accounts.json", | ||
"--cas.authn.pm.core.enabled=true" | ||
] | ||
} |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
ci/tests/puppeteer/scenarios/pm-invalid-password-reset/script.json
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,11 @@ | ||
{ | ||
"dependencies": "pm-webflow", | ||
"properties": [ | ||
"--cas.audit.engine.enabled=false", | ||
"--cas.server.name=https://localhost:8443", | ||
"--cas.server.prefix=${cas.server.name}/cas", | ||
|
||
"--cas.authn.pm.core.enabled=true", | ||
"--cas.audit.engine.enabled=false" | ||
] | ||
} |
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
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ git clone --recursive --depth=1 --single-branch --branch=master [email protected]:a | |
# git fetch --unshallow | ||
``` | ||
|
||
For a successful clone, you will need to have [set up SSH keys](https://help.github.com/articles/working-with-ssh-key-passphrases/) for your account on Github. | ||
For a successful clone, you will need to have [set up SSH keys](https://docs.github.com/en/authentication) for your account on Github. | ||
If that is not an option, you may clone the CAS repository under `https` via `https://github.com/apereo/cas.git`. | ||
|
||
You may also need to update submodules linked to the CAS repository. Newer versions of Git will do this automatically, | ||
|
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.