nexus-scripting-examples
nexus-scripting-examples copied to clipboard
Can we change realms using script ?
I want to change the realms using script but failed. I have no idea how to update the realms using script. Here is the code i used. Please have some suggestions for me.
@Inject
RealmManagerImpl realmManagerImpl;
realmManagerImpl.enableRealm('LDAP Realm', true);
realmManagerImpl.enableRealm('Docker Bearer Token Realm', true);