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

JWT function #1

Closed
MohammedAlasaad opened this issue Dec 17, 2019 · 3 comments
Closed

JWT function #1

MohammedAlasaad opened this issue Dec 17, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@MohammedAlasaad
Copy link

Hi,
I see you had verifyJWT there but its not called anywhere.. I would use JWT verify but how to do that?

Thanks

@DSorlov
Copy link
Owner

DSorlov commented Dec 17, 2019

For verifying you will need to implement that code. I have not done that for this as it is just a PoC at the moment. Please see https://frejaeid.com/rest-api/Freja%20eID%20Relying%20Party%20Developers'%20Documentation.html#FrejaeIDRelyingPartyDevelopers'Documentation-JWSJWScertificate for details on implementing it. I will most probably do this in the future however I have not had the time yet.

@DSorlov DSorlov added the enhancement New feature or request label Dec 17, 2019
@DSorlov DSorlov self-assigned this Dec 17, 2019
@MohammedAlasaad
Copy link
Author

Thanks I will try to do it :)
Regards

DSorlov added a commit that referenced this issue May 2, 2020
### BREAKING CHANGES
- Renamed the main class from 'frejaeID' to new name 'phpFreja'
- Renamed the php file from 'frejaeID.php' to 'freja.php'
- Output from the checkSignatureRequest have changed

### Changed
- Included a fork from [php-jws](https://github.com/Gamegos/php-jws) in repo

### Added
- Added JWS validation as suggested by [#1](#1)
- PEM-files added for JWS validation
@DSorlov
Copy link
Owner

DSorlov commented May 2, 2020

The project have now been updated (v1.0) and ready with code for JWS validation also built-in so you won't need to do that stuff yourself. Some other changes and optimizations have been done also. Happy coding!

@DSorlov DSorlov closed this as completed May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants