From 933134e3b0d6008e5805449f0e490adf5963cdcb Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 23 Oct 2026 04:51:05 -0700 Subject: [PATCH] OIDC test - test jumbojett oidc php app test add exception message --- web/login.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/login.php b/web/login.php index c43f7b5..a746f98 100644 --- a/web/login.php +++ b/web/login.php @@ -16,4 +16,10 @@ $oidc->setRedirectURL('https://fitness.matt-cloud.com/pgapi/auth/oidc/callback') $oidc->setCodeChallengeMethod('S256'); // Start the auth flow -$oidc->authenticate(); \ No newline at end of file +try { + $oidc->authenticate(); // will redirect to Authelia +} catch (Exception $e) { + http_response_code(500); + echo 'Login failed: ' . $e->getMessage(); + exit; +} \ No newline at end of file