Skip to content

Unable to create personal access tokens when using hashed client secrets #1252

@aaronhuisinga

Description

@aaronhuisinga
  • Passport Version: 9.0.1
  • Laravel Version: 7.10.3
  • PHP Version: 7.4.3
  • Database Driver & Version: MySQL 8.0.19

Description:

After upgrading to Passport v9, enabling hashed client secrets (Passport::hashClientSecrets()), and running the command to hash the secrets in the database, we are unable to create Personal Access Tokens.

When using the included Vue component, we receive a 500 (Client authentication failed) when trying to create a new Personal Access Token.

Strangely, even after hashing the client secrets in the database, removing the Passport:hashClientSecrets() method from the AppServiceProvider fixes the issue and allows Personal Access Tokens to be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions