Files
sabrilandGitHub 23af2531fa SEC-10098 E2E/Cypress chore(cypress): upgrade to v15.13 and to [email protected] (#36091)
* chore(cypress): upgrade to v15.13 and to [email protected]

* fix comments and update exposing cypress env
2026-04-16 13:35:26 +08:00

35 lines
1.2 KiB
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export function getKeycloakServerSettings() {
const baseUrl = Cypress.config('baseUrl');
const {keycloakBaseUrl, keycloakAppName} = Cypress.expose();
const idpDescriptorUrl = `${keycloakBaseUrl}/auth/realms/${keycloakAppName}`;
const idpUrl = `${idpDescriptorUrl}/protocol/saml`;
return {
SamlSettings: {
Enable: true,
Encrypt: false,
IdpURL: idpUrl,
IdpDescriptorURL: idpDescriptorUrl,
ServiceProviderIdentifier: `${baseUrl}/login/sso/saml`,
AssertionConsumerServiceURL: `${baseUrl}/login/sso/saml`,
SignatureAlgorithm: 'RSAwithSHA256',
PublicCertificateFile: '',
PrivateKeyFile: '',
FirstNameAttribute: 'firstName',
LastNameAttribute: 'lastName',
EmailAttribute: 'email',
UsernameAttribute: 'username',
EnableSyncWithLdap: true,
EnableSyncWithLdapIncludeAuth: true,
IdAttribute: 'username',
},
LdapSettings: {
EnableSync: true,
BaseDN: 'ou=e2etest,dc=mm,dc=test,dc=com',
},
};
}