mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-04 00:38:10 +00:00
fix(stalwart): moved the provision to only keycloak use
This commit is contained in:
4 files changed
+24
-19
No files matched your search
@@ -15,7 +15,7 @@
|
||||
const env = require("./env");
|
||||
const tls = require("./tls");
|
||||
const keycloak = require("./keycloak");
|
||||
const keycloakUsers = require("./keycloak_users");
|
||||
const mapache = require("./mapache");
|
||||
const logout = require("./logout");
|
||||
const landing = require("./landing");
|
||||
const csp = require("./csp");
|
||||
@@ -29,7 +29,7 @@ module.exports = {
|
||||
...env,
|
||||
...tls,
|
||||
...keycloak,
|
||||
...keycloakUsers,
|
||||
...mapache,
|
||||
...logout,
|
||||
...landing,
|
||||
...csp,
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* The OIDC-only persona.
|
||||
*
|
||||
* `MAPACHE`
|
||||
* A person the administrator onboards in Keycloak after the deploy,
|
||||
* whom no application pre-provisions. Keycloak's spec provisions it
|
||||
* once; consumers prove they create the account on first OIDC login.
|
||||
*/
|
||||
|
||||
const MAPACHE = {
|
||||
username: "mapache",
|
||||
firstName: "Infinito",
|
||||
lastName: "Mapache",
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
MAPACHE,
|
||||
};
|
||||
+2
-16
@@ -1,12 +1,6 @@
|
||||
/**
|
||||
* Keycloak user provisioning through the admin console.
|
||||
*
|
||||
* `MAPACHE`
|
||||
* The OIDC-only persona: a person the administrator onboards in Keycloak
|
||||
* after the deploy, whom no application pre-provisions. Keycloak's spec
|
||||
* provisions it once; consumers prove they create the account on first
|
||||
* OIDC login.
|
||||
*
|
||||
* `provisionKeycloakUser(browser, options)`
|
||||
* Signs the master-realm administrator into the admin console, creates
|
||||
* `options.user` in `options.realm` when it is missing, and sets
|
||||
@@ -23,15 +17,8 @@
|
||||
*/
|
||||
|
||||
const { expect } = require("@playwright/test");
|
||||
const { resolveTimeout } = require("../../timeouts");
|
||||
const { performKeycloakLoginForm } = require("./keycloak");
|
||||
const { gotoOnion } = require("./env");
|
||||
|
||||
const MAPACHE = {
|
||||
username: "mapache",
|
||||
firstName: "Infinito",
|
||||
lastName: "Mapache",
|
||||
};
|
||||
const { performKeycloakLoginForm, gotoOnion } = require("./personas");
|
||||
const { resolveTimeout } = require("./timeouts");
|
||||
|
||||
async function openUser(page, username) {
|
||||
const search = page.getByPlaceholder(/search user/i).first();
|
||||
@@ -116,6 +103,5 @@ async function provisionKeycloakUser(browser, options) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
MAPACHE,
|
||||
provisionKeycloakUser,
|
||||
};
|
||||
@@ -1,7 +1,8 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
const { resolveTimeout } = require("./timeouts");
|
||||
|
||||
const { MAPACHE, assertCspMetaParity, assertCspResponseHeader, decodeDotenvQuotedValue, expectNoCspViolations, gotoOnion, installCspViolationObserver, normalizeBaseUrl, provisionKeycloakUser, runAdminFlow, runBiberFlow, runGuestFlow, safeSkipUnlessEnabled } = require("./personas");
|
||||
const { MAPACHE, assertCspMetaParity, assertCspResponseHeader, decodeDotenvQuotedValue, expectNoCspViolations, gotoOnion, installCspViolationObserver, normalizeBaseUrl, runAdminFlow, runBiberFlow, runGuestFlow, safeSkipUnlessEnabled } = require("./personas");
|
||||
const { provisionKeycloakUser } = require("./admin-console");
|
||||
test.use({ ignoreHTTPSErrors: true });
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user