Skip to content

Commit

Permalink
rename GoogleAuthFilters to CommonAuthFilters in anticipation of …
Browse files Browse the repository at this point in the history
…replacing plain Google auth with `pan-domain-authentication` 🐼
  • Loading branch information
twrichards committed Apr 25, 2024
1 parent 944ea27 commit 2d0ea08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions admin/app/http/AdminFilters.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package http

import org.apache.pekko.stream.Materializer
import GoogleAuthFilters.AuthFilterWithExemptions
import googleAuth.FilterExemptions
import CommonAuthFilters.AuthFilterWithExemptions
import model.ApplicationContext
import play.api.http.{HttpConfiguration, HttpFilters}
import play.api.mvc.EssentialFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import play.api.mvc.{Filter, RequestHeader, Result}

import scala.concurrent.Future

object GoogleAuthFilters {
object CommonAuthFilters {
val LOGIN_ORIGIN_KEY = "loginOriginUrl"

class AuthFilterWithExemptions(loginUrl: FilterExemption, exemptions: Seq[FilterExemption])(implicit
Expand Down
3 changes: 1 addition & 2 deletions preview/app/http/PreviewFilters.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package http

import org.apache.pekko.stream.Materializer
import GoogleAuthFilters.AuthFilterWithExemptions
import CommonAuthFilters.AuthFilterWithExemptions
import controllers.HealthCheck
import googleAuth.FilterExemptions
import model.ApplicationContext
import play.api.http.{HttpConfiguration, HttpFilters}
import play.api.mvc.{Filter, RequestHeader, Result}
Expand Down

0 comments on commit 2d0ea08

Please sign in to comment.