No need for OAuth callback as SDK method
This commit is contained in:
parent
c4e8e53e02
commit
8cedaf649a
1 changed files with 5 additions and 4 deletions
|
@ -636,10 +636,11 @@ $utopia->get('/v1/auth/oauth/callback/:provider/:projectId')
|
||||||
->desc('OAuth Callback')
|
->desc('OAuth Callback')
|
||||||
->label('error', __DIR__.'/../views/general/error.phtml')
|
->label('error', __DIR__.'/../views/general/error.phtml')
|
||||||
->label('scope', 'auth')
|
->label('scope', 'auth')
|
||||||
->label('sdk.namespace', 'auth')
|
//->label('sdk.namespace', 'auth')
|
||||||
->label('sdk.method', 'oauthCallback')
|
//->label('sdk.method', 'oauthCallback')
|
||||||
->label('abuse-limit', 50)
|
->label('abuse-limit', 50)
|
||||||
->label('abuse-key', 'ip:{ip}')
|
->label('abuse-key', 'ip:{ip}')
|
||||||
|
->label('docs', false)
|
||||||
->param('projectId', '', function () {return new Text(1024);}, 'Project unique ID')
|
->param('projectId', '', function () {return new Text(1024);}, 'Project unique ID')
|
||||||
->param('provider', '', function () use ($providers) {return new WhiteList(array_keys($providers));}, 'OAuth provider')
|
->param('provider', '', function () use ($providers) {return new WhiteList(array_keys($providers));}, 'OAuth provider')
|
||||||
->param('code', '', function () {return new Text(1024);}, 'OAuth code')
|
->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('error', __DIR__.'/../views/general/error.phtml')
|
||||||
->label('webhook', 'auth.oauth')
|
->label('webhook', 'auth.oauth')
|
||||||
->label('scope', 'auth')
|
->label('scope', 'auth')
|
||||||
->label('sdk.namespace', 'auth')
|
//->label('sdk.namespace', 'auth')
|
||||||
->label('sdk.method', 'oauthRedirect')
|
//->label('sdk.method', 'oauthRedirect')
|
||||||
->label('abuse-limit', 50)
|
->label('abuse-limit', 50)
|
||||||
->label('abuse-key', 'ip:{ip}')
|
->label('abuse-key', 'ip:{ip}')
|
||||||
->label('docs', false)
|
->label('docs', false)
|
||||||
|
|
Loading…
Reference in a new issue