No need for OAuth callback as SDK method
This commit is contained in:
parent
c4e8e53e02
commit
8cedaf649a
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue