OIDC test - test jumbojett oidc php app test add exception message
This commit is contained in:
1 parent
58de6d1073
commit
933134e3b0
1 file changed
+7
-1
+7
-1
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user