2016-02-14 20:50:10 +03:00
|
|
|
<?php
|
|
|
|
namespace common\models;
|
|
|
|
|
2016-11-27 19:19:13 +03:00
|
|
|
class OauthScope {
|
2016-02-14 20:50:10 +03:00
|
|
|
|
2016-02-23 00:49:46 +03:00
|
|
|
const OFFLINE_ACCESS = 'offline_access';
|
|
|
|
const MINECRAFT_SERVER_SESSION = 'minecraft_server_session';
|
2016-08-06 16:36:24 +03:00
|
|
|
const ACCOUNT_INFO = 'account_info';
|
2016-08-03 22:05:19 +03:00
|
|
|
const ACCOUNT_EMAIL = 'account_email';
|
2016-02-23 00:49:46 +03:00
|
|
|
|
2016-11-27 19:19:13 +03:00
|
|
|
public static function getScopes() : array {
|
|
|
|
return [
|
|
|
|
self::OFFLINE_ACCESS,
|
|
|
|
self::MINECRAFT_SERVER_SESSION,
|
|
|
|
self::ACCOUNT_INFO,
|
|
|
|
self::ACCOUNT_EMAIL,
|
|
|
|
];
|
2016-02-14 20:50:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|