Blacksmoke16 / GESI

Google Sheets™ ESI Add-on
https://blacksmoke16.github.io/GESI
MIT License
196 stars 37 forks source link

Access token validation error: invalid audience (line 61, file "esi_client") #104

Closed alexanderjacuna closed 1 year ago

alexanderjacuna commented 1 year ago

Seeing the error below when authorizing first character.

Google Apps Script
Access token validation error: invalid audience (line 61, file "esi_client")

Steps to reproduce:

  1. Install the GESI add-on.
  2. Select "Authorize Character" in the dropdown.
  3. Login via EVE Online SSO.
  4. Immediately after authenticating with first character the error appears.

googleappsscripterror

Blacksmoke16 commented 1 year ago

It seems https://docs.esi.evetech.net/docs/sso/validating_eve_jwt.html#validate-the-audience-claim is no longer accurate as the value of the aud claim is:

[
  "683084ab5f8848d4b187462ac3b97677",
  "EVE Online"
]

I've raised this in the partner program discord to see if its a bug, intended, or what.

Blacksmoke16 commented 1 year ago

As per https://github.com/esi/esi-docs/pull/77, this is now expected. I'll update the validation logic and get a new release out.

Blacksmoke16 commented 1 year ago

Fixed in https://github.com/Blacksmoke16/GESI/releases/tag/9.2.1.

alexanderjacuna commented 1 year ago

Was able to authenticate my toon as expected. Thanks for the quick fix.