From 862c2d467e3ea9e73766f0e215a45bda450eea6a Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 7 Oct 2016 02:02:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B4=D1=83=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D1=8B=20=D1=80=D0=BE=D1=83?= =?UTF-8?q?=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F=20https=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D0=BE=D0=B2,=20=D0=BF=D0=BE=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=8F=D1=82=20?= =?UTF-8?q?=D0=B2=20https://github.com/yiisoft/yii2/issues/12691?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/config/routes.php | 3 +++ api/modules/authserver/Module.php | 1 + 2 files changed, 4 insertions(+) diff --git a/api/config/routes.php b/api/config/routes.php index 7ff19d2..11be512 100644 --- a/api/config/routes.php +++ b/api/config/routes.php @@ -24,4 +24,7 @@ return [ "http://{$params['authserverHost']}/mojang/api/users/profiles/minecraft/" => 'mojang/api/uuid-by-username', "http://{$params['authserverHost']}/mojang/api/user/profiles//names" => 'mojang/api/usernames-by-uuid', "POST http://{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames', + "https://{$params['authserverHost']}/mojang/api/users/profiles/minecraft/" => 'mojang/api/uuid-by-username', + "https://{$params['authserverHost']}/mojang/api/user/profiles//names" => 'mojang/api/usernames-by-uuid', + "POST https://{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames', ]; diff --git a/api/modules/authserver/Module.php b/api/modules/authserver/Module.php index 1a4a5e2..9531fd2 100644 --- a/api/modules/authserver/Module.php +++ b/api/modules/authserver/Module.php @@ -40,6 +40,7 @@ class Module extends \yii\base\Module implements BootstrapInterface { public function bootstrap($app) { $app->getUrlManager()->addRules([ "http://$this->host/$this->id/auth/" => "$this->id/authentication/", + "https://$this->host/$this->id/auth/" => "$this->id/authentication/", ], false); }