-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27012 from guardian/pan-domain-authentication
wrap `admin` and `preview` in `pan-domain-authentication` 🐼
- Loading branch information
Showing
35 changed files
with
314 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
package controllers | ||
|
||
import conf.{AllGoodCachedHealthCheck, NeverExpiresSingleHealthCheck} | ||
import play.api.libs.ws.WSClient | ||
import play.api.mvc.ControllerComponents | ||
import play.api.mvc.{Action, AnyContent, BaseController, ControllerComponents} | ||
|
||
import scala.concurrent.ExecutionContext | ||
class HealthCheck(val controllerComponents: ControllerComponents) extends BaseController { | ||
|
||
class HealthCheck(wsClient: WSClient, val controllerComponents: ControllerComponents)(implicit | ||
executionContext: ExecutionContext, | ||
) extends AllGoodCachedHealthCheck( | ||
NeverExpiresSingleHealthCheck("/login"), | ||
)(wsClient, executionContext) | ||
def healthCheck(): Action[AnyContent] = | ||
Action { | ||
Ok("OK") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
admin/app/controllers/admin/OAuthLoginAdminController.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.