Skip to content

feat: add no-auth flag W-18293634 #79

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: add no-auth flag W-18293634 #79

wants to merge 2 commits into from

Conversation

cristiand391
Copy link
Member

@cristiand391 cristiand391 commented Mar 31, 2025

What does this PR do?

Adds a --no-auth flag for api request rest to skip adding the Authorization: Bearer <token> header to requests.

Use cases:

revoke oauth tokens:

https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_revoke_token.htm&type=5

Get the token from sf org display and:

sf api request rest services/oauth2/revoke --body "@token.txt" --header 'Content-Type: application/x-www-form-urlencoded' --include -X POST --no-auth

other oauth endpoints

when playing with other oauth endpoints (requesting the initial access token, no need to auth)

What issues does this PR fix or reference?

@W-18293634@

@cristiand391 cristiand391 requested a review from a team as a code owner March 31, 2025 13:23
Co-authored-by: Juliet Shackell <63259011+jshackell-sfdc@users.noreply.github.com>
@cristiand391 cristiand391 added the bug Something isn't working label Apr 16, 2025
Copy link

git2gus bot commented Apr 16, 2025

This issue has been linked to a new work item: W-18293634

@cristiand391 cristiand391 changed the title feat: add no-auth flag feat: add no-auth flag W-18293634 Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants