mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Implementation of the backend for the OAuth2 clients management
This commit is contained in:
@@ -3,8 +3,17 @@
|
||||
* @var array $params
|
||||
*/
|
||||
return [
|
||||
'/oauth2/v1/<action>' => 'oauth/<action>',
|
||||
// Oauth module routes
|
||||
'/oauth2/v1/<action>' => 'oauth/authorization/<action>',
|
||||
'POST /v1/oauth2/<type>' => 'oauth/clients/create',
|
||||
'GET /v1/oauth2/<clientId>' => 'oauth/clients/get',
|
||||
'PUT /v1/oauth2/<clientId>' => 'oauth/clients/update',
|
||||
'DELETE /v1/oauth2/<clientId>' => 'oauth/clients/delete',
|
||||
'POST /v1/oauth2/<clientId>/reset' => 'oauth/clients/reset',
|
||||
'GET /v1/accounts/<accountId:\d+>/oauth2/clients' => 'oauth/clients/get-per-account',
|
||||
'/account/v1/info' => 'oauth/identity/index',
|
||||
|
||||
// Accounts module routes
|
||||
'GET /v1/accounts/<id:\d+>' => 'accounts/default/get',
|
||||
'GET /v1/accounts/<id:\d+>/two-factor-auth' => 'accounts/default/get-two-factor-auth-credentials',
|
||||
'POST /v1/accounts/<id:\d+>/two-factor-auth' => 'accounts/default/enable-two-factor-auth',
|
||||
@@ -13,6 +22,7 @@ return [
|
||||
'DELETE /v1/accounts/<id:\d+>/ban' => 'accounts/default/pardon',
|
||||
'/v1/accounts/<id:\d+>/<action>' => 'accounts/default/<action>',
|
||||
|
||||
// Legacy accounts endpoints. It should be removed after frontend will be updated.
|
||||
'GET /accounts/current' => 'accounts/default/get',
|
||||
'POST /accounts/change-username' => 'accounts/default/username',
|
||||
'POST /accounts/change-password' => 'accounts/default/password',
|
||||
@@ -25,14 +35,14 @@ return [
|
||||
'DELETE /two-factor-auth' => 'accounts/default/disable-two-factor-auth',
|
||||
'POST /accounts/change-lang' => 'accounts/default/language',
|
||||
|
||||
'/account/v1/info' => 'identity-info/index',
|
||||
|
||||
// Session server module routes
|
||||
'/minecraft/session/join' => 'session/session/join',
|
||||
'/minecraft/session/legacy/join' => 'session/session/join-legacy',
|
||||
'/minecraft/session/hasJoined' => 'session/session/has-joined',
|
||||
'/minecraft/session/legacy/hasJoined' => 'session/session/has-joined-legacy',
|
||||
'/minecraft/session/profile/<uuid>' => 'session/session/profile',
|
||||
|
||||
// Mojang API module routes
|
||||
'/mojang/profiles/<username>' => 'mojang/api/uuid-by-username',
|
||||
'/mojang/profiles/<uuid>/names' => 'mojang/api/usernames-by-uuid',
|
||||
'POST /mojang/profiles' => 'mojang/api/uuids-by-usernames',
|
||||
|
Reference in New Issue
Block a user