-
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
InvalidArgumentException #61
Comments
Hi, This is caused by the missing access token in your authentication container. |
If such so you probably need to fix guidelines |
That would assume the old case is non longer valid. However, can you confirm it is working properly if you provide the token ? |
I'm also having this issue. I can confirm I passed the access code into the authorization container and it still failed. Downgrading to version 2.0.0 and deleting the old file cache also fixed the problem for me (and using the same code). |
do you have a sample of your used code ? |
the $character value is where I pull the information from the database and push it to the container.
|
Are you using SSO v2 token ? or is it SSO v1 format ? |
Pretty sure I'm using SSO v2, although I'm using a different library for authenticating the characters and the scopes so I could be wrong. I couldn't find a way to use Eseye to get the initial access token and refresh token from the authentication code. Am I missing something somewhere? |
You can use this portal to decode a token https://jwt.io/ |
It seems my tokens are not in JWT format, which would explain a big part of the issue. Not sure where to go from here. |
That's from CCP docs : Here is the way we've implemented it in SeAT : Also, either you make the switch from SSO v2.0 or if you stick to SSO v1.0, you have to target eseye |
Thanks for the help, when tried targeting the SSO v2 I get different a grant type not supported error, but I'll try the links you sent. If it doesn't work I will either post on the Eve forums or open a different issue so this one doesn't get any more cluttered. |
use https://github.com/nullx27-org/eveonline-socialite |
I am having the same issue as OP originally stated, but had trouble following the final solution to get it working again. InvalidArgumentException Jose\Component\Signature\Serializer\CompactSerializer::unserialize vendor/web-token/jwt-signature/Serializer/CompactSerializer.php :72 |
@awingender are you providing an access token ? |
I am new to Eseye and am still trying to get the example to work. Edit: I used Token Generator to make the access token. Edit 2: I downgraded to 2.0.0 like others, and Eseye works now. This time, I did not put an access token anywhere. Just the refresh key. I am very much interested in knowing what I was doing wrong, and am willing to help.
Here is where I put my access token... inside EsiAuthentication.php
|
@awingender thank you to pointing the toolbox new version is shipped with a toolbox compatible with JWT tokens / OAuth v2 endpoints |
Has somebody of you a working fork with the "2.0" downgrade applied? |
I believe there is a bug in GuzzleFetcher.php in setAuthenticationScopes() - it takes access token from authentication container, when it should just call getToken(). Currently, access_token needs to be explicitly set and it also needs to be valid, otherwise JWT validation goes boom, which kinna defeats the purpose of token autorefreshment. Changing
to
seems to be working for me (at least for now:-) ). |
This is still an issue 2 years later. Following the instructions, it says nothing about having to provide the access_token, so I get exact same error as OP. Manuals and Wiki should be update to clarify exactly what is needed. Now, after adding the extra/missing data I get an error because the token has expired, so for some reason is not even trying to refresh the access_token. |
I just have another fresh installment of eseye on my laravel app and I get some error
InvalidArgumentException
Unsupported input
Jose\Component\Signature\Serializer\CompactSerializer::unserialize vendor/web-token/jwt-signature/Serializer/CompactSerializer.php :72
https://flareapp.io/share/o7AeeB7p#F50
lib version 2.2.1
upd: after downgrading to 2.0.0 everything is fine.
The text was updated successfully, but these errors were encountered: