Documentation
¶
Overview ¶
Package loginserver implements a "terraform login protocol" server:
https://developer.hashicorp.com/terraform/internals/v1.3.x/login-protocol#client
Index ¶
Constants ¶
View Source
const ( ErrInvalidRequest string = "invalid_request" ErrInvalidGrant string = "invalid_grant" ErrInvalidClient string = "invalid_client" ErrUnsupportedGrantType string = "unsupported_grant_type" ErrUnsupportedResponseType string = "unsupported_response_type" ErrAccessDenied string = "access_denied" ErrServerError string = "server_error" )
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1
View Source
const ( // OAuth2 client ID - purely advisory according to: // https://developer.hashicorp.com/terraform/internals/v1.3.x/login-protocol#client ClientID = "terraform" AuthRoute = "/app/oauth2/auth" TokenRoute = "/oauth2/token" )
Variables ¶
View Source
var Discovery = DiscoverySpec{ Client: ClientID, GrantTypes: []string{"authz_code"}, Authz: AuthRoute, Token: TokenRoute, Ports: []int{10000, 10010}, }
Functions ¶
Types ¶
type DiscoverySpec ¶
Click to show internal directories.
Click to hide internal directories.