Skip to content

Commit

Permalink
Fix use of withFallback made when dropping Play 2.7
Browse files Browse the repository at this point in the history
This fixes #449,
the problem with server startup that was released with
play-secret-rotation v8.1.0.
  • Loading branch information
rtyley committed Apr 9, 2024
1 parent f1b4704 commit d1a385e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play/play-v28/RotatingSecretComponents.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait RotatingSecretComponents extends BuiltInComponentsFromContext {
override def configuration: Configuration = {
val nonRotatingSecretOnlyUsedToSatisfyConfigChecks = secretStateSupplier.snapshot().secrets.active

super.configuration.withFallback(Configuration("play.http.secret.key" -> nonRotatingSecretOnlyUsedToSatisfyConfigChecks))
Configuration("play.http.secret.key" -> nonRotatingSecretOnlyUsedToSatisfyConfigChecks).withFallback(super.configuration)
}

override lazy val requestFactory: RequestFactory =
Expand Down

0 comments on commit d1a385e

Please sign in to comment.