Untitled

mail@pastecode.io avatar
unknown
kotlin
4 months ago
395 B
3
Indexable
@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