bshaffer / oauth2-server-php-docs

documentation for the oauth2-server-php library
231 stars 148 forks source link

JWT Client Verification example does not work #89

Closed svycka closed 7 years ago

svycka commented 7 years ago

fixed example to work same as https://github.com/bshaffer/oauth2-server-php/blob/v1.8.0/src/OAuth2/Encryption/Jwt.php#L141-L148

svycka commented 7 years ago

@bshaffer also looks like payload example is outdated? because now it generates something like this:

{
  "id": "394a71988caa6cc30601e43f5b6569d52cd7f6df",
  "jti": "394a71988caa6cc30601e43f5b6569d52cd7f6df",
  "iss": "",
  "aud": "client_id",
  "sub": "user_id",
  "exp": 1483711650,
  "iat": 1483708050,
  "token_type": "bearer",
  "scope": null
}