New pages

Jump to navigation Jump to search
New pages
Hide registered users | Show bots | Show redirects

3 August 2025

  • 14:4014:40, 3 August 2025 Token authentication (hist | edit) [891 bytes] Admin (talk | contribs) (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...")