Skip to content

Tried to implement grant_type = client_credentials .. not working v6.0 #429

@fmangat

Description

@fmangat

Bug Report

after migration and applying fixture i had to change the

src\Core\src\Security\src\Entity\OAuthAccessToken.php

#[ORM\Column(name: 'user_id', type: 'string', length: 25, nullable: true)]
private ?string $userId;

To

#[ORM\Column(name: 'user_id', type: 'string', length: 25, nullable: true)]
private ?string $userId=null;

i was able to generate access token but when i tried to access endpoint with bearer token it gave

{
"error": {
"messages": [
"User not found."
]
}
}

and problem was coming because of issue in verification of token .. issue goes if i passed exact jwt token in token column of oauth_access_tokens..

Summary

Current behavior

unable to get "grant_type": "client_credentials", not working out of the box

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions