@kilterset/auth0-actions-testing
Version:
Test and develop Auth0 Actions or Okta CIC Actions locally.
28 lines • 833 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.auth0 = void 0;
const PROTOCOLS = [
"oidc-basic-profile",
"oidc-implicit-profile",
"oauth2-device-code",
"oauth2-resource-owner",
"oauth2-resource-owner-jwt-bearer",
"oauth2-password",
"oauth2-access-token",
"oauth2-refresh-token",
"oauth2-token-exchange",
"oidc-hybrid-profile",
"samlp",
"wsfed",
"wstrust-usernamemixed",
];
const auth0 = (chance) => {
return {
tenantId: () => chance.n(chance.word, 2).join("-"),
domain: () => chance.auth0().tenantId() + ".auth0.com",
clientId: () => chance.string({ length: 32, alpha: true, numeric: true }),
protocol: () => chance.pickone([...PROTOCOLS]),
};
};
exports.auth0 = auth0;
//# sourceMappingURL=auth0.js.map