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
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