Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

orchestrator-client does not handle basic auth appropriately #796

Open
cswingler opened this issue Feb 6, 2019 · 0 comments
Open

orchestrator-client does not handle basic auth appropriately #796

cswingler opened this issue Feb 6, 2019 · 0 comments

Comments

@cswingler
Copy link
Contributor

The way orchestrator-client is handling auth in curl is dropping the --basic --user flags, which appears to be a simple omission.

++ get_curl_auth_params
++ local requires_auth=
++ [[ chrisswingler:<redacted> != \: ]]
++ requires_auth='--basic --user chrisswingler:Lech3rY8nymphO'
++ curl --help
++ fgrep -q disallow-username-in-url
++ curl chrisswingler:<redacted> -s --head https://orchestrator.int.sproutsocial.com/api
++ fgrep -q '401 Unauthorized'
++ echo '401 Unauthorized'
++ return
+ local 'curl_auth_params=401 Unauthorized'
+ '[' '401 Unauthorized' == '401 Unauthorized' ']'
+ fail 'Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running'
+ message='orchestrator-client[22728]: Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running'
+ echo 'orchestrator-client[22728]: Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running'
orchestrator-client[22728]: Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running
+ exit 1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant