KEYCLOAK-11725 Removed VaultRealmModel from tests
This commit is contained in:
parent
c16cfe9696
commit
b6b7c11517
2 changed files with 11 additions and 1182 deletions
|
@ -30,7 +30,7 @@ public class FilesPlainTextVaultProviderFactory implements VaultProviderFactory
|
|||
logger.debug("Can not create a vault since it's disabled or not initialized correctly");
|
||||
return null;
|
||||
}
|
||||
return new FilesPlainTextVaultProvider(vaultPath, session.getContext().getRealm().getName());
|
||||
return new FilesPlainTextVaultProvider(vaultPath, getRealmName(session));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -60,4 +60,8 @@ public class FilesPlainTextVaultProviderFactory implements VaultProviderFactory
|
|||
public String getId() {
|
||||
return PROVIDER_ID;
|
||||
}
|
||||
|
||||
protected String getRealmName(KeycloakSession session) {
|
||||
return session.getContext().getRealm().getName();
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue