pl.touk.nussknacker.ui.security.oidc.OidcAuthenticationProvider.scala Maven / Gradle / Ivy
The newest version!
package pl.touk.nussknacker.ui.security.oidc
import com.typesafe.config.Config
import pl.touk.nussknacker.ui.security.api.AuthenticationProvider
import pl.touk.nussknacker.ui.security.oauth2.OAuth2AuthenticationResources
import sttp.client3.SttpBackend
import scala.concurrent.{ExecutionContext, Future}
class OidcAuthenticationProvider extends AuthenticationProvider {
def name: String = "Oidc"
override def createAuthenticationResources(
config: Config,
classLoader: ClassLoader
)(implicit ec: ExecutionContext, sttpBackend: SttpBackend[Future, Any]): OAuth2AuthenticationResources = {
new OidcAuthenticationResources(name, OidcAuthenticationConfiguration.createWithDiscovery(config))
}
}
object OidcAuthenticationProvider extends OidcAuthenticationProvider
© 2015 - 2025 Weber Informatics LLC | Privacy Policy