Skip to content

Commit

Permalink
Fix test with RuntimeException
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Blanchaert committed Feb 20, 2024
1 parent ee0d6ce commit e29218d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/modules/SecurityModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ class SecurityModule(environment: Environment, configuration: Configuration) ext
case "SAML2Client" => createSaml2Config(s"$ConfigKeyPrefixClientConfig.SAML2Client")
case other => throw new RuntimeException(s"Unsupported auth client config value: $other")
}
config match {
case Some(config) => config
case None => throw new RuntimeException(s"Failed configuring auth client")
}
config.getOrElse(new Config())
}

private def createConfiguredDirectBasicAuthConfig(keyPrefix: String): Config = {
Expand Down

0 comments on commit e29218d

Please sign in to comment.