Registering host to Red Hat Satellite 6 using Global Registration Template fails with ERROR: unauthorized
Environment
- Red Hat Satellite 6
Issue
-
Registering a host to the
Red Hat Satelliteserver usingcurlcommand generated usingGlobal Registration Templatemethod fails with below error:# set -o pipefail && curl -sS 'https://capsule.exampe.com:9090/register? activation_keys=Prod_9&hostgroup_id=4&location_id=2&operatingsystem_id=34&organization_id=1&update_packages=false' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo4LCJpYXQiOjE3NTI0NTc3NDYsImp0aSI6IjBlMDkxZTY1NzJjYjBiYmQ2OThhYzQ5ZGFlNTk5Yjk0N2Q4OTUyNzFjZTJlOWY5NTAxZjMxNGRiMmExMjFjOWIi LCJleHAiOjE3NTI0NzIxNDYsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.C8ladK0cJ02C2gFmoH_m3ncD5pXOhnPsrfCqw6DALVY' | bash ERROR: unauthorized JWT SSO: Expired JWT token.
Resolution
-
Select
Token life timeoption and set it toUnlimited.Satellite WebUI --> Hosts --> Register Host --> Advanced --> Find the "Token life time" checkbox and check it to set it as unlimited.
For more KB articles/solutions related to Red Hat Satellite 6.x Client Subscription Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Client Subscription Issues
Root Cause
- The curl command generated using
Global Registration Templatemethod automatically expires after 4 hours by default.
SBR
Product(s)
Components
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.