Hi Team, I am working in B2B marketplace and i am ...
# help
r
Hi Team, I am working in B2B marketplace and i am trying to get token from this endpoint http://glue.us.spryker.local/token but it is saying invalid client id. if client id is required where can i find client id which will work for all. this is the cURL for testing in postman :- curl --location 'http://glue.us.spryker.local/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --form 'grant_type="password"' \ --form 'username="sonia@spryker.com"' \ --form 'password="change123"' \
m
the secret saved in db is out-of-date according the secret generated from docker-sdk on every sdk up...
👀 1
r
so where can i find client id ?
m
docker/sdk cli echo $SPRYKER_OAUTH_CLIENT_SECRET
encrypt this value with bcrypt and update the secret in spy_oauth_client table
r
Thank you. trying this method
m
or better said u have to do a password_hash with bcrypt when i right remember..
r
docker/sdk cli echo $SPRYKER_OAUTH_CLIENT_SECRET this command is not working or i'm doing wrong
s
@rich-guitar-29888 for me it's also not working when I trigger this in one line. But when I split it into 2 steps, then it works fine. So first enter cli with docker/sdk cli, and after that execute command echo $SPRYKER_OAUTH_CLIENT_SECRET.
✅ 1
r
Thank you @steep-rocket-65099 it worked
👍 1