2021-06-09 18:56:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$config = array(
|
|
|
|
|
|
|
|
|
|
'admin' => array(
|
|
|
|
|
'core:AdminPassword',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
'example-userpass' => array(
|
|
|
|
|
'exampleauth:UserPass',
|
|
|
|
|
// username: sso_user
|
|
|
|
|
// password: user123#
|
|
|
|
|
'sso_user:user123#' => array(
|
|
|
|
|
'uid' => array('1'),
|
|
|
|
|
'eduPersonAffiliation' => array('group1'),
|
2022-08-15 17:42:33 +00:00
|
|
|
'displayname' => array('SSO User 1'),
|
2021-06-09 18:56:59 +00:00
|
|
|
'email' => 'sso_user@example.com',
|
|
|
|
|
),
|
2021-11-10 23:15:41 +00:00
|
|
|
'sso_user2:user123#' => array(
|
|
|
|
|
'uid' => array('2'),
|
|
|
|
|
'eduPersonAffiliation' => array('group1'),
|
2022-08-15 17:42:33 +00:00
|
|
|
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name' => array('SSO User 2'),
|
2021-11-10 23:15:41 +00:00
|
|
|
'email' => 'sso_user2@example.com',
|
|
|
|
|
),
|
2023-03-01 23:18:40 +00:00
|
|
|
// sso_user_3_global_admin has FLEET_JIT_USER_ROLE_GLOBAL attribute to be added as global admin.
|
|
|
|
|
'sso_user_3_global_admin:user123#' => array(
|
|
|
|
|
'uid' => array('3'),
|
|
|
|
|
'eduPersonAffiliation' => array('group1'),
|
|
|
|
|
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name' => array('SSO User 3'),
|
|
|
|
|
'email' => 'sso_user_3_global_admin@example.com',
|
|
|
|
|
'FLEET_JIT_USER_ROLE_GLOBAL' => 'admin',
|
|
|
|
|
),
|
|
|
|
|
// sso_team_user_3 has FLEET_JIT_USER_ROLE_TEAM_1 attribute to be added as maintainer
|
|
|
|
|
// of team with ID 1, its login will fail if team with ID 1 doesn't exist.
|
|
|
|
|
'sso_user_4_team_maintainer:user123#' => array(
|
|
|
|
|
'uid' => array('4'),
|
|
|
|
|
'eduPersonAffiliation' => array('group1'),
|
|
|
|
|
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name' => array('SSO User 4'),
|
|
|
|
|
'email' => 'sso_user_4_team_maintainer@example.com',
|
|
|
|
|
'FLEET_JIT_USER_ROLE_TEAM_1' => 'maintainer',
|
|
|
|
|
),
|
2021-06-09 18:56:59 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
|
);
|