You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Verify this is a valid solution from those that understand thruway more than I do.
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!
The text was updated successfully, but these errors were encountered:
After a long overdue upgrade to php 8.2, got the following error when connecting with a client.
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 extendsAbstractAuthProviderClient
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:
AbstractAuthProviderClient
class only returns["SUCCESS"]
from itsprocessAuthenticate
function leading one to believe that is the intended behaviour.Thanks!
The text was updated successfully, but these errors were encountered: