Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I think, you should specify in your implementation that access key cannot contains spaces; See first explode in class function /** * @param $headerContent * @param $algoPrefix * @return array * @throws EscherException */ public static function parseAuthHeader($headerContent, $algoPrefix) { $parts = explode(' ', $headerContent); if (count($parts) !== 4) { throw new EscherException('Could not parse authorization header: ' . $headerContent); } return array( 'Algorithm' => self::match(self::algoPattern($algoPrefix), $parts[0]), 'Credentials' => self::match('Credential=([A-Za-z0-9\/\-_]+),', $parts[1]), 'SignedHeaders' => self::match('SignedHeaders=([A-Za-z\-;]+),', $parts[2]), 'Signature' => self::match('Signature=([0-9a-f]+)', $parts[3]), ); }
- Loading branch information