Untitled
@Bean fun roleProvider( authTokenConverter: AuthTokenConverter, idmClient: IdmClient, libraryConfigs: List<OpsUiLibraryConfig> ): RoleProvider { val libraryConfig = libraryConfigs.find { it is LibraryConfigFromConfigService } ?: throw IllegalArgumentException("No suitable LibraryConfig found") return RoleProviderImpl(authTokenConverter, idmClient, libraryConfig) }
Leave a Comment