Token endpoint gives error when using cryptotokens (D8)

Created on 6 December 2017, over 6 years ago
Updated 12 March 2024, 4 months ago

Basically.. this is the same issue in the d8 module

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland Zekvyrin Switzerland / Greece

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Nate Covington

    I was able to work around this error:

    Uncaught PHP Exception Drupal\\Core\\Entity\\EntityStorageException: "SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'token' at row 1: INSERT INTO "oauth2_server_token" ("client_id", "uid", "type", "token", 
    

    By modifying the oaht2_server_token table - change the "token" column to type=text
    That'll allow for a longer token value and not throw the exception

    However, I'm still getting this error after fixing it:
    bad_signature
    invalid_token

    Any help would be appreciated

  • πŸ‡«πŸ‡·France GaΓ«lG Lille, France

    The change proposed in #2 still is in the Drupal 7 version of the module. I don't get why it shouldn't be in the D8+ one. The problem encountered in #3 may have another cause.

Production build 0.69.0 2024