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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant