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

Audience validation? #45

Closed
tzkmx opened this issue Sep 25, 2019 · 1 comment
Closed

Audience validation? #45

tzkmx opened this issue Sep 25, 2019 · 1 comment

Comments

@tzkmx
Copy link

tzkmx commented Sep 25, 2019

Hi! I'm currently using your library in a refactoring of a legacy application around the Container of Laravel, rewriting all to get it into the full framework would be too costly. This library is currently helping me a lot to implement a sane authentication.

I'm just about to get into the authorization and I was thinking about using the audience claim, so I'd like to know if you have any plans or would be accepting PR to implement this as part of the library itself. Or don't and it should be something I could implement in a separate package.

Thanks for contributing this to the community and I look forward to a contribution if you are interested.

@RobDWaller
Copy link
Owner

Hi, sorry for the slow response, life issues, and thanks for the kind words.

To answer your question you can use the audience claim, it is available in the Build class and the Parsed class:

https://github.com/RobDWaller/ReallySimpleJWT/blob/master/src/Build.php#L191

https://github.com/RobDWaller/ReallySimpleJWT/blob/master/src/Parsed.php#L157

I hope this info helps. Let me know if you have any other questions.

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

No branches or pull requests

2 participants