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

Undefined array key 1 #365

Open
CalianDos opened this issue Jan 3, 2025 · 0 comments
Open

Undefined array key 1 #365

CalianDos opened this issue Jan 3, 2025 · 0 comments

Comments

@CalianDos
Copy link

CalianDos commented Jan 3, 2025

After a long overdue upgrade to php 8.2, got the following error when connecting with a client.

Warning: Undefined array key 1 in .../vendor/voryx/thruway/src/Authentication/AuthenticationManager.php on line 369

We have a thruway router with an auth client to authenticate our tokens. Digging around through the source and understanding (at least enough to get by) what is expected, I've determined that the processAuthenticate method in our auth client that extends AbstractAuthProviderClient needs to return ["SUCCESS", new stdClass()] instead of just ["SUCCESS"]. Or at least that gets it work again in our environment.

I'm making a ticket for 2 reasons:

  1. Verify this is a valid solution from those that understand thruway more than I do.
  2. Suggest that this could perhaps be fixed somehow? The AbstractAuthProviderClient class only returns ["SUCCESS"] from its processAuthenticate function leading one to believe that is the intended behaviour.

Thanks!

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

1 participant