Skip to content

Error 401 with message"The client with clientId \"undefined\" was not found" #7

@giacomoRanieri

Description

@giacomoRanieri

Trying to setup an oauth service with a mongodb orm setup, there's a problem in the query parameter name mapping.
You can find an example causing the problem in this zip.
oauth-service.zip
Node version: v12.16.1

Test call:

POST http://localhost:3000/oauth2/token?grant_type=password&client_id=6ab1cfab-0b3d-418b-8ca2-94d98663fb6f&client_secret=6nV9GGm1pu8OY0HDZ3Y7QsVnxtkb60wu&scopes=carma&username=j.doe@change.me&password=changeme

Looking into swaggerUI the parameter seems to use the name definedas class member and not the one defined in the decoration.

Can you help me sort the problem?

Thanks,Giacomo

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