Token authentication: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

3 August 2025

  • curprev 14:4114:41, 3 August 2025 Admin talk contribs 891 bytes +25 No edit summary
  • curprev 14:4014:40, 3 August 2025 Admin talk contribs 866 bytes +866 Created page with "If you like to integrate MiRTA PBX in your portal and you like to have a single authentication, you can create a token with the username and password for the user and pass to the login.php script. <code><?php $key='*******'; $credentials['username']='*****'; $credentials['password']='*****'; $keyHash = hash('sha256', $key, true); $iv = substr($keyHash, 0, 16); define('AES_256_CBC', 'aes-256-cbc'); $token=base64_encode(openssl_encrypt(json_encode($credentials), AES_2..."