docs
  1. SCAYLE Resource Center
  2. Checkout Authentication API
  3. Resources
  4. Redirect chains
  5. Redirect users to identity provider

Redirect users to identity provider

JWT contains the callbackUrl, idpKey, clientId, iat, and exp. JWT needs to be signed with the shopSecret. All the following fields are required for the JWT:

  • callbackUrl
  • idpKey
  • clientId
  • iat
  • exp

Example JWT payload

$payload = [ 'callbackUrl' => $this->argument('callbackUrl'), 'idpKey' => $this->argument('idpKey'), 'clientId' => $this->argument('clientId'), 'iat' => time(), 'exp' => now()->modify('+15 minutes')->timestamp ];
  • iat - current timestamp
  • exp - expiration timestamp