MCPcopy Create free account
hub / github.com/Scalingo/cli / authHost

Method authHost

config/auth.go:199–205  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

197}
198
199func (a *CliAuthenticator) authHost(ctx context.Context) (string, error) {
200 u, err := url.Parse(C.ScalingoAuthURL)
201 if err != nil {
202 return "", errors.Wrapf(ctx, err, "parse auth URL: %v", C.ScalingoAuthURL)
203 }
204 return strings.Split(u.Host, ":")[0], nil
205}
206
207func tryAuth(ctx context.Context) (*scalingo.User, string, error) {
208 var login string

Callers 3

StoreAuthMethod · 0.95
LoadAuthMethod · 0.95
RemoveAuthMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected