Changeset 2184923
- Timestamp:
- 11/02/2019 01:12:09 PM (6 years ago)
- Location:
- identity-plus/trunk
- Files:
-
- 3 added
- 4 edited
-
lib/danger.html (added)
-
lib/identity_plus/Identity_Plus_API.php (modified) (5 diffs)
-
lib/img/unknown.jpg (added)
-
lib/initialize.php (modified) (1 diff)
-
lib/runtime.php (added)
-
lib/settings_panel.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
identity-plus/trunk/lib/identity_plus/Identity_Plus_API.php
r2184906 r2184923 66 66 const HOME = "identity.plus"; 67 67 // const HOME = "local.stefanfarr.identityplus.app"; 68 const api_endpoint = "https://api." . self::HOME . "/v1";69 const validation_endpoint = "https://signon." . self::HOME;70 68 71 69 public $cert_details; … … 113 111 114 112 $intent = $this->create_intent(Intent_Type::discover, NULL, NULL, NULL, NULL, $return_url); 115 return self::validation_endpoint.'/' . $intent->value;113 return "https://signon." . self::HOME . '/' . $intent->value; 116 114 } 117 115 … … 134 132 135 133 $intent = $this->create_intent(Intent_Type::discover, NULL, NULL, NULL, NULL, $return_url); 136 return self::validation_endpoint.'/' . $intent->value;134 return "https://signon." . self::HOME . '/' . $intent->value; 137 135 } 138 136 … … 161 159 ); 162 160 163 $call = curl_init( self::validation_endpoint. "/api/v1");161 $call = curl_init("https://signon." . self::HOME . "/api/v1"); 164 162 165 163 // curl_setopt($call, CURLOPT_VERBOSE, true); 166 curl_setopt($call, CURLOPT_URL, self::validation_endpoint. "/api/v1");164 curl_setopt($call, CURLOPT_URL, "https://signon." . self::HOME . "/api/v1"); 167 165 curl_setopt($call, CURLOPT_CUSTOMREQUEST, "POST"); 168 166 curl_setopt($call, CURLOPT_POSTFIELDS, json_encode($request)); … … 315 313 316 314 317 $call = curl_init( self::api_endpoint);315 $call = curl_init("https://api." . self::HOME . "/v1"); 318 316 319 317 if($debug) curl_setopt($call, CURLOPT_VERBOSE, true); 320 curl_setopt($call, CURLOPT_URL, self::api_endpoint);318 curl_setopt($call, CURLOPT_URL, "https://api." . self::HOME . "/v1"); 321 319 curl_setopt($call, CURLOPT_SSLKEY, stream_get_meta_data($temp_pkey)['uri']); 322 320 curl_setopt($call, CURLOPT_SSLKEYPASSWD, $temp_pass); -
identity-plus/trunk/lib/initialize.php
r2184906 r2184923 360 360 // add the footer cross-validation widget 361 361 if(false && isset($identity_plus_api) && $identity_plus_api != NULL){?> 362 <iframe src="<?php echo Identity_Plus_API::validation_endpoint; ?>/widgets/cross-validation?origin=<?php echo $identity_plus_api->cert_details['serialNumber'] ?>&challenge=<?php echo $identity_plus_api->compute_challenge()?>" scrolling="no" class="identity-plus-cf"></iframe>362 <iframe src="<?php echo "https://signon." . Identity_Plus_API::HOME; ?>/widgets/cross-validation?origin=<?php echo $identity_plus_api->cert_details['serialNumber'] ?>&challenge=<?php echo $identity_plus_api->compute_challenge()?>" scrolling="no" class="identity-plus-cf"></iframe> 363 363 <?php 364 364 } -
identity-plus/trunk/lib/settings_panel.php
r2184906 r2184923 358 358 unset($_SESSION['identity-plus-user-profile']); 359 359 unset($_SESSION['identity-plus-anonymous-id']); 360 wp_redirect( Identity_Plus_API::validation_endpoint.'/' . $intent->value);360 wp_redirect("https://signon." . Identity_Plus_API::HOME . '/' . $intent->value); 361 361 362 362 exit(); -
identity-plus/trunk/readme.txt
r2184906 r2184923 4 4 Requires at least: 3.9 5 5 Tested up to: 5.2.4 6 Stable tag: 2.0 6 Stable tag: 2.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.