Jjwt throws signature error when validates a jwt token generated from php
问题 I need to add a PHP application in a SSO built using a CAS in Java. After authentication of the user, the SSO sends the credintials to the PHP App and the token is built using the code below: public function getToken(Signer $signer = null, Key $key = null) { $signer = $signer ?: $this->signer; $key = $key ?: $this->key; if ($signer instanceof Signer) { $signer->modifyHeader($this->headers); } $payload = [ $this->encoder->base64UrlEncode($this->encoder->jsonEncode($this->headers)), $this-