SHA1 replaced with SHA256 for the Storefront SSO feature
What's new
SSO (Single-Sign-On) for websitesChanges in API
<?php
$client_secret = "A1Lu7ANIhKD6A1Lu7ANIhKD6ADsaSdsa"; // example value
$message = base64_encode("{appClientId: 'my-cool-app', userId:'234', profile: { email:'[email protected]', billingPerson: { name: 'John Doe' } }}"); // example values
$timestamp = time();
$hmac = hash_hmac('sha256', "$message $timestamp", $client_secret);
echo "<script> var ecwid_sso_profile = '$message $hmac $timestamp'; </script>";
?>Why the changes are breaking
How to update the app
Last updated
Was this helpful?
