Skip to content

Conversation

@bshaffer
Copy link
Contributor

Adds PHP 7.2 support to IAP samples by using a different JWT library which supports PHP 7.2

@bshaffer bshaffer requested a review from ryanmats January 24, 2018 01:48
@bshaffer
Copy link
Contributor Author

This PR is dependent on #543 for tests to pass

Copy link
Contributor

@ryanmats ryanmats left a comment

Choose a reason for hiding this comment

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

Looks good if the tests pass and you can explain the $signature_index variable.

$iap_jwt,
$jwk_set,
['ES256'],
$signature_index
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this variable and where is it coming from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep! It's kinda silly, but if the validation is successful, it returns the index in the $jwk_set that is used by the key. Since it's not important to our sample, and it's optional, I'll remove it.

@bshaffer bshaffer merged commit d06276a into master Jan 25, 2018
@bshaffer bshaffer deleted the iap-for-php7_2 branch January 25, 2018 20:14
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.

2 participants