-
Notifications
You must be signed in to change notification settings - Fork 30
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
Requests to endpoints that don't need authorisation fail when passing client details #12
Comments
Hey! Thanks for the report! I am getting closer to moving this library into SeAT core as well and will most probably come across this too. Let me debug and see whats happening / what can be done to make it more bazinga! |
Actually I think I figured it out myself just now. :) I added in the Here's my code: $authentication = new EsiAuthentication([
'secret' => env('TESTEVEONLINE_CLIENT_SECRET'),
'client_id' => env('TESTEVEONLINE_CLIENT_ID'),
'access_token' => $new_token->access_token,
'refresh_token' => $user->refresh_token,
'scopes' => [
'esi-industry.read_corporation_mining.v1',
'esi-wallet.read_corporation_wallet.v1',
'esi-mail.send_mail.v1',
],
'token_expires' => date('Y-m-d H:i:s', time() + $new_token->expires_in),
]);
|
@matthewpennell you are 100% correct. However, I am expecting the expired token due to the default epoch to trigger the automatic refresh token logic, just like you are doing outside of I'll test to see if I can replicate this. |
Hello there, Perhaps you could update the docs to say that the extra fields might be needed in some situations? P.S. thanks for the work you've put into this library :-) |
Just come across this is it possible you can show your full page code |
This is the relevant file in my application. |
I'm finding that using an
EsiAuthentication
object when creating theEseye
object causes requests to endpoints that don't need authorisation to fail.Here's a snippet of code:
The call to the basic character information endpoint throws an error:
invalid_client: Unknown client
.If I remove the
EsiAuthentication
from the object creation, it works fine. However, I want to be able to create a singleEseye
object and use that for all calls, not have to juggle different ones. This is basically the same code as your example, so I can't see why it wouldn't be working.The text was updated successfully, but these errors were encountered: