Version Notes
Improve callback URL generation.
Download this release
Release Info
Developer | ID.me |
Extension | TroopID_Connect |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
app/code/community/TroopID/Connect/Block/Adminhtml/System/Config/Instructions.php
CHANGED
@@ -40,11 +40,15 @@ class TroopID_Connect_Block_Adminhtml_System_Config_Instructions extends TroopID
|
|
40 |
}
|
41 |
|
42 |
public function getCallbackUrl() {
|
43 |
-
return Mage::getUrl("troopid/authorize/callback", array(
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
|
46 |
public function getBaseUrl() {
|
47 |
-
return $this->getStore()->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB,
|
48 |
}
|
49 |
|
50 |
}
|
40 |
}
|
41 |
|
42 |
public function getCallbackUrl() {
|
43 |
+
return Mage::getUrl("troopid/authorize/callback", array(
|
44 |
+
"_type" => Mage_Core_Model_Store::URL_TYPE_WEB,
|
45 |
+
"_secure" => $this->getRequest()->isSecure(),
|
46 |
+
"_nosid" => true
|
47 |
+
));
|
48 |
}
|
49 |
|
50 |
public function getBaseUrl() {
|
51 |
+
return $this->getStore()->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, $this->getRequest()->isSecure());
|
52 |
}
|
53 |
|
54 |
}
|
app/code/community/TroopID/Connect/Block/Cart.php
CHANGED
@@ -11,11 +11,19 @@ class TroopID_Connect_Block_Cart extends Mage_Checkout_Block_Cart_Abstract {
|
|
11 |
}
|
12 |
|
13 |
public function getEndpoint() {
|
14 |
-
return Mage::getUrl("troopid/authorize/authorize", array(
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
|
17 |
public function getRemoveUrl() {
|
18 |
-
return Mage::getUrl("troopid/authorize/remove", array(
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
public function hasAffiliation() {
|
11 |
}
|
12 |
|
13 |
public function getEndpoint() {
|
14 |
+
return Mage::getUrl("troopid/authorize/authorize", array(
|
15 |
+
"_type" => Mage_Core_Model_Store::URL_TYPE_WEB,
|
16 |
+
"_secure" => $this->getRequest()->isSecure(),
|
17 |
+
"_nosid" => true
|
18 |
+
));
|
19 |
}
|
20 |
|
21 |
public function getRemoveUrl() {
|
22 |
+
return Mage::getUrl("troopid/authorize/remove", array(
|
23 |
+
"_type" => Mage_Core_Model_Store::URL_TYPE_WEB,
|
24 |
+
"_secure" => $this->getRequest()->isSecure(),
|
25 |
+
"_nosid" => true
|
26 |
+
));
|
27 |
}
|
28 |
|
29 |
public function hasAffiliation() {
|
app/code/community/TroopID/Connect/Helper/Oauth.php
CHANGED
@@ -15,7 +15,11 @@ class TroopID_Connect_Helper_Oauth extends Mage_Core_Helper_Abstract {
|
|
15 |
}
|
16 |
|
17 |
private function getCallbackUrl() {
|
18 |
-
return Mage::getUrl("troopid/authorize/callback", array(
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
public function getAuthorizeUrl($scope = "military") {
|
15 |
}
|
16 |
|
17 |
private function getCallbackUrl() {
|
18 |
+
return Mage::getUrl("troopid/authorize/callback", array(
|
19 |
+
"_type" => Mage_Core_Model_Store::URL_TYPE_WEB,
|
20 |
+
"_secure" => Mage::app()->getFrontController()->getRequest()->isSecure(),
|
21 |
+
"_nosid" => true
|
22 |
+
));
|
23 |
}
|
24 |
|
25 |
public function getAuthorizeUrl($scope = "military") {
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>TroopID_Connect</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>ID.me Integration</summary>
|
10 |
<description>N/A</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>ID.me</name><user>idme</user><email>support@id.me</email></author></authors>
|
13 |
-
<date>2015-02-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="TroopID"><dir name="Connect"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Affiliation.php" hash="d2f7b9f00585fc7d2b558096c31f5de1"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><file name="Custom.php" hash="0f7f75b4b55edb638d241852a0220b3f"/><file name="Instructions.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>TroopID_Connect</name>
|
4 |
+
<version>1.4.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>ID.me Integration</summary>
|
10 |
<description>N/A</description>
|
11 |
+
<notes>Improve callback URL generation.</notes>
|
12 |
<authors><author><name>ID.me</name><user>idme</user><email>support@id.me</email></author></authors>
|
13 |
+
<date>2015-02-13</date>
|
14 |
+
<time>03:09:44</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="TroopID"><dir name="Connect"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Affiliation.php" hash="d2f7b9f00585fc7d2b558096c31f5de1"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><file name="Custom.php" hash="0f7f75b4b55edb638d241852a0220b3f"/><file name="Instructions.php" hash="a723462553ee585ccf3c9ded256c2d55"/></dir></dir></dir><file name="Cart.php" hash="75f526c8e484328a45604c0c50bbf6a8"/></dir><dir name="Helper"><file name="Data.php" hash="72586f83d6d5b3b4208f242e410208db"/><file name="Oauth.php" hash="f1a125b7a8be9e28acfaadd220bcc4e1"/></dir><dir name="Model"><dir name="Cart"><file name="Observer.php" hash="c837fb0c02ac02416200002d5e3b233c"/></dir><dir name="Rule"><file name="Condition.php" hash="345e7992da8bd7d543e9d25ed92e1d66"/><file name="Observer.php" hash="ff3a6cc43e4d46401a4bbb37262f4f56"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Enabled.php" hash="103e4776ee228d313fcb63c0eefcb0db"/></dir></dir></dir></dir><dir name="controllers"><file name="AuthorizeController.php" hash="fa9f2560b2d04995091835935037cc2a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2bba51d29a0e9c444ff401a460a44142"/><file name="config.xml" hash="25effbb6c1487f4db22443f8a47f0af2"/><file name="system.xml" hash="22c0372a79c65417cf1239591fc37d64"/></dir><dir name="sql"><dir name="troopid_connect_setup"><file name="mysql4-install-0.1.0.php" hash="2ed9e5f82407c756477d7fc2d3cd20ff"/><file name="mysql4-upgrade-0.2.0-0.3.0.php" hash="6160551e6951f91ab7ef18e887ea73a9"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="troopid"><file name="idme.css" hash="950827f2031330fed931930c12b5fa88"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="troopid"><file name="idme.css" hash="57964a12675c76bca426475515160dcc"/><dir name="images"><file name="logo.png" hash="65421456771898d7cbced7b99d4b56ea"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TroopID_Connect.xml" hash="daae0990b13ba4071764efd4f9f674ec"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="troopid_connect.xml" hash="760c7d73dcab51068a0db524699b354e"/></dir><dir name="template"><dir name="troopid"><dir name="connect"><file name="affiliation.phtml" hash="69c74c5b4d78f1f6822be88d1a3bd928"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="troopid_connect.xml" hash="f83172a0eaea9b8c185f49f0864bf8cb"/></dir><dir name="template"><dir name="troopid"><dir name="connect"><file name="callback.phtml" hash="71b10af7408d6f50999529c08aa75dfb"/><file name="cart.phtml" hash="2df306654373065c7b0d5299b248379c"/><file name="script.phtml" hash="5e281cd246f5d02fae91ff9742ee9088"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|