pulumi/pkg/backend/httpstate
Matt Ellis 3642cca98f Don't print junk when a unrecognized URL is passed to pulumi login
In order to present a message with a link to a user's access tokens in
the service, we have to convert the API server's URL to the URL for
the console.  We understand how to do this for servers that look like
our servers (i.e. their host name is `api.<whatever>`), but in general
we can't do this.

Rewrite the code such that we only print a message about how to find
your access tokens (and offer browser based login) only in cases where
we are able to construct a URL to the console.

Fixes #1930
2018-09-13 19:36:00 -07:00
..
client Rename backend packages 2018-09-05 07:32:42 -07:00
backend.go Don't print junk when a unrecognized URL is passed to pulumi login 2018-09-13 19:36:00 -07:00
console.go Rename backend packages 2018-09-05 07:32:42 -07:00
console_test.go Rename backend packages 2018-09-05 07:32:42 -07:00
context.go Rename backend packages 2018-09-05 07:32:42 -07:00
context_test.go Rename backend packages 2018-09-05 07:32:42 -07:00
snapshot.go Rename backend packages 2018-09-05 07:32:42 -07:00
stack.go Consolidate some new and up functionality (#1884) 2018-09-06 12:45:56 -07:00
state.go Fix a few lint warnings 2018-09-05 08:25:23 -07:00