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

T16094 JWT verify #16095

Merged
merged 6 commits into from
Sep 15, 2022
Merged

T16094 JWT verify #16095

merged 6 commits into from
Sep 15, 2022

Conversation

niden
Copy link
Member

@niden niden commented Sep 15, 2022

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG
  • I have created a PR for the documentation about this change

Added Phalcon\Encryption\Security\JWT\Token::validate() to validate a token's claims
Added Phalcon\Encryption\Security\JWT\Token::verify() to verify a token's signature
Added Phalcon\Encryption\Security\JWT\Validator::getErrors() to return any errors with the validation as an array

Thanks

@niden niden requested a review from Jeckerson September 15, 2022 20:34
@niden niden self-assigned this Sep 15, 2022
@niden niden added new feature request Planned Feature or New Feature Request 5.0 The issues we want to solve in the 5.0 release labels Sep 15, 2022
@niden niden linked an issue Sep 15, 2022 that may be closed by this pull request
@niden niden merged commit 1e99b52 into phalcon:5.0.x Sep 15, 2022
@niden niden deleted the T16094 branch September 15, 2022 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 The issues we want to solve in the 5.0 release new feature request Planned Feature or New Feature Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NFR]: JWT verification/validation
2 participants