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