OIDC test - test jumbojett oidc php app test add exception message

This commit is contained in:
matt committed 2026-10-23 04:51:05 -07:00
1 parent 58de6d1073
commit 933134e3b0
1 file changed
+7 -1
+7 -1
View File
@@ -16,4 +16,10 @@ $oidc->setRedirectURL('https://fitness.matt-cloud.com/pgapi/auth/oidc/callback')
$oidc->setCodeChallengeMethod('S256');
// Start the auth flow
$oidc->authenticate();
try {
$oidc->authenticate(); // will redirect to Authelia
} catch (Exception $e) {
http_response_code(500);
echo 'Login failed: ' . $e->getMessage();
exit;
}