View Source

UserIdentityBackend will, upon startup if *import.enabled=true*, import data from four different data files specifying
* Applications
* Users
* Organizations
* Roles

The files should be in CSV-format and located in for example a testdata catalogue in the same folder as UserIdentityBackend.jar

*NB:* You might want to hange applicationSecrets in production environment, in fact there is also a set of [ProdInitData]...

h3. applications.csv
{code}
#applicationId, applicationName, defaultRole, defaultOrgName, applicationSecret
11, SecurityTokenService, SSOApplication, Whydah, 6r46g3q986Ep6By7B9J46m96D
12, UserAdminService, WhydahUserAdmin, Whydah, 9ju592A4t8dzz8mz7a5QQJ7Px
15, SSOLoginWebApplication, SSOApplication, Whydah, 33779936R6Jr47D4Hj5R6p9qT
19, UserAdminWebApplication, WhydahUserAdmin, Whydah, 9EH5u5wJFKsUvJFmhypwK7j6D
99, WhydahTestWebApplication, SSOApplication, Whydah, 33879936R6Jr47D4Hj5R6p9qT
{code}

h3. Users
{code}
#userId, username, password, firstName, lastName, email, cellPhone, personRef
anna.dapter@getwhydah.com, annad, secretPw, Anna, Dapter, anna.dapter@getwhydah.com, +123434535, 213213
alf.abett@getwhydah.com, alfa, secretPw, Alf, Abett, alf.abett@getwhydah.com, +4799999999, 212311
c.good@getwhydah.com, cgood, secretPw, C, Good, c.good@getwhydah.com, , 0
useradmin, admin, admin, User, Admin, useradmin@altran.com, +1555406789, 0
{code}

h3. organizations.csv
{code}
#applicationId, organizationName
10, Whydah
10, Altran
12, Whydah
12, Altran
13, Whydah
13, Altran
{code}

h3. rolemappings.csv
{code}
#userId, applicationId, applicationName, organizationName, roleName, roleValue
anna.dapter@getwhydah.com, 11, SecurityTokenService, Whydah, WhydahUserAdmin, 99
anna.dapter@getwhydah.com, 12, UserAdminService, Altran, developer, 30
anna.dapter@getwhydah.com, 15, SSOLoginWebApplication, Whydah, developer, 20
useradmin, 19, UserAdminWebApplication, Whydah, WhydahUserAdmin, 99
{code}