1
0
Fork 0
mirror of synced 2024-06-28 11:10:46 +12:00

No need for OAuth callback as SDK method

This commit is contained in:
eldadfux 2019-09-30 00:09:24 +03:00
parent c4e8e53e02
commit 8cedaf649a

View file

@ -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)