CI stack for Authentik with ldap

This commit is contained in:
Jamie Curnow committed 2024-11-04 07:48:41 +10:00
1 parent a277a5d167
commit 6e820a36ac
35 files changed
+116 -172

No files matched your search

+3 -4
View File
@@ -66,7 +66,7 @@ Cypress.Commands.add('getToken', (defaultUser, defaultAuth) => {
});
} else {
let auth = {
type: 'password',
type: 'local',
identity: 'cypress@example.com',
secret: 'changeme',
};
@@ -78,7 +78,7 @@ Cypress.Commands.add('getToken', (defaultUser, defaultAuth) => {
cy.log('Setup = true');
// login with existing user
cy.task('backendApiPost', {
path: '/api/tokens',
path: '/api/auth',
data: auth,
}).then((res) => {
cy.wrap(res.result.token);
@@ -90,11 +90,10 @@ Cypress.Commands.add('getToken', (defaultUser, defaultAuth) => {
Cypress.Commands.add('createInitialUser', (defaultUser) => {
let user = {
name: 'Cypress McGee',
nickname: 'Cypress',
email: 'cypress@example.com',
is_disabled: false,
auth: {
type: 'password',
type: 'local',
secret: 'changeme'
},
capabilities: ['full-admin']