From 8cedaf649a5a8a2e96f635ddb84796e465c708aa Mon Sep 17 00:00:00 2001 From: eldadfux Date: Mon, 30 Sep 2019 00:09:24 +0300 Subject: [PATCH] No need for OAuth callback as SDK method --- app/controllers/auth.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/auth.php b/app/controllers/auth.php index 4f93ebd2dc..cfdd2c696c 100644 --- a/app/controllers/auth.php +++ b/app/controllers/auth.php @@ -636,10 +636,11 @@ $utopia->get('/v1/auth/oauth/callback/:provider/:projectId') ->desc('OAuth Callback') ->label('error', __DIR__.'/../views/general/error.phtml') ->label('scope', 'auth') - ->label('sdk.namespace', 'auth') - ->label('sdk.method', 'oauthCallback') + //->label('sdk.namespace', 'auth') + //->label('sdk.method', 'oauthCallback') ->label('abuse-limit', 50) ->label('abuse-key', 'ip:{ip}') + ->label('docs', false) ->param('projectId', '', function () {return new Text(1024);}, 'Project unique ID') ->param('provider', '', function () use ($providers) {return new WhiteList(array_keys($providers));}, 'OAuth provider') ->param('code', '', function () {return new Text(1024);}, 'OAuth code') @@ -656,8 +657,8 @@ $utopia->get('/v1/auth/oauth/:provider/redirect') ->label('error', __DIR__.'/../views/general/error.phtml') ->label('webhook', 'auth.oauth') ->label('scope', 'auth') - ->label('sdk.namespace', 'auth') - ->label('sdk.method', 'oauthRedirect') + //->label('sdk.namespace', 'auth') + //->label('sdk.method', 'oauthRedirect') ->label('abuse-limit', 50) ->label('abuse-key', 'ip:{ip}') ->label('docs', false)