From 8f9e99a92d2cb3c0d4ff81cec832b45eb9c385a9 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Tue, 3 Sep 2019 10:24:35 +0300 Subject: [PATCH] Fixed OAuth 404 error --- app/controllers/auth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/auth.php b/app/controllers/auth.php index 21e4217326..138876f5d8 100644 --- a/app/controllers/auth.php +++ b/app/controllers/auth.php @@ -594,7 +594,7 @@ $utopia->put('/v1/auth/recovery/reset') } ); -$utopia->get('/v1/oauth/:provider') +$utopia->get('/v1/auth/oauth/:provider') ->desc('OAuth Login') ->label('error', __DIR__ . '/../views/general/error.phtml') ->label('scope', 'auth') @@ -659,7 +659,7 @@ $utopia->get('/v1/oauth/:provider') } ); -$utopia->get('/v1/oauth/callback/:provider/:projectId') +$utopia->get('/v1/auth/oauth/callback/:provider/:projectId') ->desc('OAuth Callback') ->label('error', __DIR__ . '/../views/general/error.phtml') ->label('scope', 'auth') @@ -679,7 +679,7 @@ $utopia->get('/v1/oauth/callback/:provider/:projectId') } ); -$utopia->get('/v1/oauth/:provider/redirect') +$utopia->get('/v1/auth/oauth/:provider/redirect') ->desc('OAuth Redirect') ->label('error', __DIR__ . '/../views/general/error.phtml') ->label('webhook', 'auth.oauth')