Zepi/Api/Rest/src/Helper/FrontendHelper.php
protected function parseAuthorizationString($authorizationString)
    {
        if (strpos($authorizationString, 'Basic') !== false) {
            $authorizationString = trim(substr($authorizationString, 6));
        }
    
        $decoded = base64_decode($authorizationString);
        $delimiterPos = strpos($decoded, ':');
    
        return array(
            'publicKey' => substr($decoded, 0, $delimiterPos),
            'hmac' => substr($decoded, $delimiterPos + 1)
        );
    }
protected function parseAuthorizationString($authorizationString)
    {
        if (strpos($authorizationString, 'Basic') !== false) {
            $authorizationString = trim(substr($authorizationString, 6));
        }
    
        $decoded = base64_decode($authorizationString);
        $delimiterPos = strpos($decoded, ':');
    
        return array(
            'publicKey' => substr($decoded, 0, $delimiterPos),
            'hmac' => substr($decoded, $delimiterPos + 1)
        );
    }
protected function parseAuthorizationString ( $ authorizationString ) { if ( strpos ( $ authorizationString , 'Basic' ) !== false ) { $ authorizationString = trim ( substr ( $ authorizationString , 6 ) ) ; } $ decoded = base64_decode ( $ authorizationString ) ; $ delimiterPos = strpos ( $ decoded , ':' ) ; return array ( 'publicKey' => substr ( $ decoded , 0 , $ delimiterPos ) , 'hmac' => substr ( $ decoded , $ delimiterPos + 1 ) ) ; }
Parses the authorization string and returns an array with
the public key and the hmac

@access protected
@param string $authorizationString
@return array
Parses the authorization string and returns an array with the public key and the hmac