fix: remove token auth.type

This commit is contained in:
loks0n 2024-01-17 12:09:15 +00:00
parent 06b6992749
commit f1664c1cd7
3 changed files with 0 additions and 14 deletions

View file

@ -1307,7 +1307,6 @@ App::put('/v1/account/sessions/magic-url')
->label('event', 'users.[userId].sessions.[sessionId].create')
->groups(['api', 'account'])
->label('scope', 'sessions.write')
->label('auth.type', 'token')
->label('audits.event', 'session.create')
->label('audits.resource', 'user/{response.userId}')
->label('audits.userId', '{response.userId}')
@ -1338,7 +1337,6 @@ App::post('/v1/account/sessions/token')
->label('event', 'users.[userId].sessions.[sessionId].create')
->groups(['api', 'account'])
->label('scope', 'sessions.write')
->label('auth.type', 'token')
->label('audits.event', 'session.create')
->label('audits.resource', 'user/{response.userId}')
->label('audits.userId', '{response.userId}')

View file

@ -311,12 +311,6 @@ App::init()
}
break;
case 'token':
if (($auths['token'] ?? true) === false) {
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Token authentication is disabled for this project');
}
break;
case 'phone':
if (($auths['phone'] ?? true) === false) {
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Phone authentication is disabled for this project');

View file

@ -55,12 +55,6 @@ App::init()
}
break;
case 'token':
if (($auths['token'] ?? true) === false) {
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Token authentication is disabled for this project');
}
break;
case 'phone':
if (($auths['phone'] ?? true) === false) {
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Phone authentication is disabled for this project');