Skip to content

Commit 83d9c63

Browse files
maxmimaxmi
authored andcommitted
Always use https in SSO
1 parent 54844e2 commit 83d9c63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/code/community/Zendesk/Zendesk/controllers/Adminhtml/ZendeskController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function authenticateAction()
119119
$jwt = JWT::encode($payload, $token);
120120
$return = $return_url ? "&return_to=".$return_url : "";
121121

122-
$url = "http://".$domain."/access/jwt?jwt=" . $jwt . $return;
122+
$url = "https://".$domain."/access/jwt?jwt=" . $jwt . $return;
123123

124124
Mage::log('Admin URL: ' . $url, null, 'zendesk.log');
125125

@@ -202,7 +202,7 @@ public function launchAction()
202202
$sso = Mage::getStoreConfig('zendesk/sso/enabled');
203203

204204
if (!$sso) {
205-
$url = "http://".$domain;
205+
$url = "https://".$domain;
206206
} elseif(Mage::helper('zendesk')->isSSOAdminUsersEnabled()) {
207207
$url = Mage::helper('zendesk')->getSSOAuthUrlAdminUsers();
208208
} else {

src/app/code/community/Zendesk/Zendesk/controllers/SsoController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function loginAction()
8080
$jwt = JWT::encode($payload, $token);
8181
$return_url = $return_url ? "&return_to=".$return_url : "";
8282

83-
$url = "http://".$domain."/access/jwt?jwt=" . $jwt.$return_url;
83+
$url = "https://".$domain."/access/jwt?jwt=" . $jwt.$return_url;
8484

8585
Mage::log('End-user URL: ' . $url, null, 'zendesk.log');
8686

0 commit comments

Comments
 (0)