4

What is the proper way to either delete, disable or at least change the default password of the 'isis-module-security-admin' by means of code or configuration?

user5806139
  • 531
  • 6
  • 14

1 Answers1

4

The module defines the SeedSecurityModuleService that runs the SeedUsersAndRolesFixtureScript that in turn sets up the account isis-module-security-admin account.

Currently this isn't configurable, but you could raise a PR against SeedSecurityModuleService where the IsisModuleSecurityAdminUser fixture script could use an @Inject ConfigurationService to read the value of the name to use from a config property, eg "isisaddons.module.security.adminUserName"

HTH Dan

Dan Haywood
  • 2,215
  • 2
  • 17
  • 23
  • I have created ModuleService & FixtureScript, but my module never called from application start up. what else should I do? – Se Song Oct 06 '17 at 03:54
  • I want to add `org` and `domianapp` to `isis-module-security-admin` by default on application startup. – Se Song Oct 06 '17 at 05:39
  • 1
    Each service is initialized by its @PostConstruct, eg in [SeedSecurityModuleService](https://github.com/isisaddons-legacy/isis-module-security/blob/master/dom/src/main/java/org/isisaddons/module/security/seed/SeedSecurityModuleService.java#L41). To get the service itself picked up, the AppManifest needs to include its package (or a superpackage), derived from a module. If you're still struggling, I suggest you push an example app to github repo and I'll pull it down to take a look. – Dan Haywood Oct 07 '17 at 13:46
  • Thank, I have done it now. I get the sample from platform.incode.org – Se Song Oct 07 '17 at 15:31