Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2180375

Summary: [DDF] Example mentioned in "3.4.2. OAuth Request Format" is missing important information or not entirely correct
Product: Red Hat Satellite Reporter: Direct Docs Feedback <ddf-bot>
Component: APIAssignee: Aneta Šteflová Petrová <apetrova>
Status: CLOSED CURRENTRELEASE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: alazik, lstejska, mjivraja, saydas
Target Milestone: UnspecifiedKeywords: Documentation, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-15 10:51:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2023-03-21 10:19:40 UTC
The curl command mentioned in the example section does not works. We perhaps are missing the information about how to generate the oauth_signature here.

Reported by: rhn-support-saydas

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.12/html/api_guide/chap-red_hat_satellite-api_guide-authenticating_api_calls#annotations:c2b9cff8-94db-458a-9d13-31e0a0e8de61

Comment 1 Sayan Das 2023-03-22 04:55:01 UTC
CC Leos and Malhar 

Here in https://access.redhat.com/documentation/en-us/red_hat_satellite/6.12/html/api_guide/chap-red_hat_satellite-api_guide-authenticating_api_calls#OAuth_Request_Format

We share this example:

curl 'https://satellite.example.com/api/architectures' \
--header 'Content-Type: application/json' \
--header 'Accept:application/json' \
--header 'FOREMAN-USER: sat_username' \
--header 'Authorization: OAuth oauth_version="1.0",oauth_consumer_key="secretkey",oauth_signature_method="hmac-sha1",oauth_timestamp=1321473112,oauth_signature=Il8hR8/ogj/XVuOqMPB9qNjSy6E='


but we don't exactly explain how to get the oauth_timestamp or even more important, the oauth_signature .  So there is no way to get this curl command working even if we want to.

We do mention "Use an OAuth client library to construct all OAuth parameters" but no such examples have been provided there. 

Python example: https://access.redhat.com/solutions/4240401 

Foreman Wiki: https://projects.theforeman.org/projects/foreman/wiki/API_OAuth

Some info about signature : https://stackoverflow.com/questions/9986533/what-does-oauth-signature-sign 

And old redmine : https://projects.theforeman.org/issues/22699 ( which seems to be not applicable any more since sat 6.11 )

Comment 3 Aneta Šteflová Petrová 2023-09-05 09:55:33 UTC
The request is to expand 3.4.2. OAuth Request Format in https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13/html/api_guide/chap-red_hat_satellite-api_guide-authenticating_api_calls#OAuth_Request_Format with more details on constructing OAuth parameters, along with examples.

While I think that adding this directly to the guide is out of scope of that document, I could add links to helpful resources elsewhere.