-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] allow grant type to be specified for client:auth #499
base: master
Are you sure you want to change the base?
[FEATURE] allow grant type to be specified for client:auth #499
Conversation
@tobiaslohr Could we get this into the next version? It's a pitfall many folks run into when using sfcc-ci with a dw.json file present in the same dir. |
Any chance of getting this fix merged? |
…sword credentials when dw.json is present
1bdf738
to
bc7bc83
Compare
@tobiaslohr I just updated the branch with the latest from master, any chance we can get this merged now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!
closes #245
I do not see this as a breaking change because everything will continue to work normally but we have a new option that will allow you to force client_credentials grant type
Related to Resource Owner Password Credentials Authentication Failure
What PR adjusts:
Allows grant type to be specified for
client:auth
. For example:sfcc-ci client:auth -t client_credentials
. Default grant type will remain unchanged and is set topassword
by default.Why?
I'm running a local project where I'm running into the
Error: Authentication failed: Resource owner authentication failed
mentioned in the related doc above. Because I have adw.json
file in my project, the grant type ofpassword
is always being used. Due to my Account Manager setup, this is throwing an error. If I force the grant type ofclient_credentials
, everything works as expected because I've added the necessary permissions to my client.