Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sandragolden
Copy link
Contributor

@sandragolden sandragolden commented Apr 26, 2023

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 to password 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 a dw.json file in my project, the grant type of password is always being used. Due to my Account Manager setup, this is throwing an error. If I force the grant type of client_credentials, everything works as expected because I've added the necessary permissions to my client.

@sandragolden sandragolden marked this pull request as draft April 26, 2023 00:10
@sandragolden sandragolden marked this pull request as ready for review April 26, 2023 00:30
@clavery
Copy link
Contributor

clavery commented Oct 17, 2023

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

@jlbruno
Copy link
Member

jlbruno commented Nov 10, 2023

Any chance of getting this fix merged?

@sandragolden
Copy link
Contributor Author

@tobiaslohr I just updated the branch with the latest from master, any chance we can get this merged now?

@SGD1953 SGD1953 self-requested a review January 26, 2024 12:29
Copy link
Contributor

@SGD1953 SGD1953 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow client:auth to force client_credential grant
6 participants