mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
2957407b5b
* fix(oidcsettings): corrected projection, unittests and added the add endpoint * fix(oidcsettings): corrected default handling and instance setup * fix: set oidc settings correctly in console * cleanup * e2e test * improve e2e test * lint e2e Co-authored-by: Livio Spring <livio.a@gmail.com> Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>
18 lines
520 B
TypeScript
18 lines
520 B
TypeScript
import { login, User } from 'support/login/users';
|
|
|
|
export interface apiCallProperties {
|
|
authHeader: string;
|
|
mgntBaseURL: string;
|
|
adminBaseURL: string;
|
|
}
|
|
|
|
export function apiAuth(): Cypress.Chainable<apiCallProperties> {
|
|
return login(User.IAMAdminUser, 'Password1!', false, true).then((token) => {
|
|
return <apiCallProperties>{
|
|
authHeader: `Bearer ${token}`,
|
|
mgntBaseURL: `${Cypress.env('BACKEND_URL')}/management/v1/`,
|
|
adminBaseURL: `${Cypress.env('BACKEND_URL')}/admin/v1/`,
|
|
};
|
|
});
|
|
}
|