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

Support for DPoP #535

Open
geniqtech opened this issue Sep 18, 2023 · 5 comments
Open

Support for DPoP #535

geniqtech opened this issue Sep 18, 2023 · 5 comments

Comments

@geniqtech
Copy link

Does this library support DPoP (Demonstration of Proof-of-Procession)?
If so, any sample code?

@bshaffer
Copy link
Collaborator

I don't know much about DPoP, but looking at the RFC, it seems like JWTs are used in DPoP, not the other way around. So this library should be able to help you implement DPoP, but there may not be a specific DPoP support added here.

@rbro
Copy link

rbro commented Jan 9, 2025

I believe DPoP requires you to create your own JWK. Is creating a JWK something that could be added to php-jwt?

@bshaffer
Copy link
Collaborator

bshaffer commented Jan 9, 2025

You can create a JWT using this library. That and validating JWTs are this library's main function.

See JWT::encode

public static function encode(

@rbro
Copy link

rbro commented Jan 9, 2025

I believe DPoP requires you to create your own JWK, not JWT. At least from looking at this tutorial - https://developer.okta.com/docs/guides/dpop/nonoktaresourceserver/main

@bshaffer
Copy link
Collaborator

@rbro

I think generating a JWK is definitely within the scope of this library, but I am not sure that I know what that particular method would look like or why it would be useful. It would take some designing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants