From 56d47ae8401b952bb3ae2fa29df495113e992987 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 20 Jul 2024 00:26:16 +0000 Subject: [PATCH] Added refresh token flow. --- oatmeal.php | 2 +- src/HomeRoutes.php | 2 +- src/RefreshTokenRoutes.php | 166 ++++++++++++++++++++++++++++++++++++- 3 files changed, 165 insertions(+), 5 deletions(-) diff --git a/oatmeal.php b/oatmeal.php index 8c5fc35..c4ad18f 100644 --- a/oatmeal.php +++ b/oatmeal.php @@ -25,7 +25,7 @@ $oatmeal = new OatmealContext((function() { })()); $oatmeal->register(new HomeRoutes); $oatmeal->register(new AuthzCodeRoutes($oatmeal->getCSRFP())); -$oatmeal->register(new RefreshTokenRoutes); +$oatmeal->register(new RefreshTokenRoutes($oatmeal->getCSRFP())); $oatmeal->register(new ClientCredsRoutes); $oatmeal->register(new PasswordRoutes); $oatmeal->register(new DeviceCodeRoutes); diff --git a/src/HomeRoutes.php b/src/HomeRoutes.php index 313cd74..f4da78b 100644 --- a/src/HomeRoutes.php +++ b/src/HomeRoutes.php @@ -19,7 +19,7 @@ final class HomeRoutes extends RouteHandler { I'm not going to bother with making this page look nice, the most you'll get it functional Javascript and/or CSS touch ups if really necessary.

-

Select A Flow

+

Select A Flow™