Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for JWT Grant Type and checking of "sub" JWT parameter #35

Merged
merged 8 commits into from
Jan 19, 2013
Merged

Conversation

F21
Copy link
Contributor

@F21 F21 commented Jan 18, 2013

I have added the documentation for the JWT Grant Type.

I also found that the latest spec required validation of the "sub" JWT parameter, so that is also now validated. Tests has been updated to reflect this.

@F21 F21 mentioned this pull request Jan 18, 2013
* @param The expiration date. If the current time is greater than the exp, the JWT is invalid. $exp
* @param The "not before" time. If the current time is less than the nbf, the JWT is invalid. $nbf
* @param The issuer, usually the client_id. $iss
* @param $exp The expiration date. If the current time is greater than the exp, the JWT is invalid.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome!! but Nulls should be lowercase

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't believe I missed that. That is now fixed. I also found another instance of NULL in one of the interfaces. That has now been fixed as well. :)

* @return string
*/
private function getJWT($exp = NULL, $nbf = NULL, $iss = 'Test Client ID')
private function getJWT($exp = NULL, $nbf = NULL, $sub = NULL, $iss = 'Test Client ID')
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you ADDED an uppercase null! :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must have gotten carried away and forgot to include that file in the commit. 📦

I have also lodge an issue with php-cs-fixer so that they can include lowercasing of PHP keywords into the fixer :)

bshaffer added a commit that referenced this pull request Jan 19, 2013
Documentation for JWT Grant Type and checking of "sub" JWT parameter
@bshaffer bshaffer merged commit d2c1577 into bshaffer:develop Jan 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants