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

Array to String exception when audience is an array #296

Closed
rogerms opened this issue Oct 15, 2018 · 2 comments
Closed

Array to String exception when audience is an array #296

rogerms opened this issue Oct 15, 2018 · 2 comments
Milestone

Comments

@rogerms
Copy link

rogerms commented Oct 15, 2018

The error message should have said "Invalid audience... " but I received "Array to String conversion exception"
The problem is on line 203 of auth0-php\src\JWTVerifier.php
I changed it to
Invalid audience '.implode( ', ', $audience ).'; expected '.implode( ', ', $this->valid_audiences )

@joshcanhelp joshcanhelp added this to the v5-Next milestone Oct 16, 2018
@joshcanhelp
Copy link
Contributor

Thank you for the report here @rogerms! You're totally right, that first one should be imploded as well. I'll put through a fix ASAP.

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants