globocom / gsh

GSH is an OpenID Connect-compatible authentication system for systems using OpenSSH servers
BSD 3-Clause "New" or "Revised" License
21 stars 12 forks source link

[FEAT] Add error message at GSH CLI discovery #31

Closed mdjunior closed 5 years ago

mdjunior commented 5 years ago

This PR adds an error message when discovery requests fails at GSH API.

Example:

$ gsh login
Using config file: /Users/manoel.junior/.gshc/config.yaml

GSH API is down: https://gsh-api.example.com (Get https://gsh-api.example.com/status/config: x509: certificate signed by unknown authority)

This PR is related with golang at macos problem at https://github.com/golang/go/issues/24652.

rafaveira3 commented 5 years ago

Sounds good to me, @mdjunior !