Documentation ¶
Overview ¶
Copyright © 2017 Sergiu Bodiu
Use of this source code is governed by and MIT license that can be found in the LICENSE file
Copyright © 2017 Sergiu Bodiu ¶
Use of this source code is governed by and MIT license that can be found in the LICENSE file
Copyright © 2017 Sergiu Bodiu ¶
Use of this source code is governed by and MIT license that can be found in the LICENSE file
Copyright © 2017 Sergiu Bodiu ¶
Use of this source code is governed by and MIT license that can be found in the LICENSE file
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RootCmd = &cobra.Command{
Use: "sso-aws",
Short: "A command line tool to help with SAML access to the AWS token service.",
Long: `ss-aws version 1.0.0 - command line tool to help with SAML access to the AWS token service.`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type ADFSClient ¶
type ADFSClient struct {
// contains filtered or unexported fields
}
ADFSClient wrapper around ADFS enabling authentication and retrieval of assertions
func NewADFSClient ¶
func NewADFSClient(skipVerify bool, ignoreProxy bool) (*ADFSClient, error)
NewADFSClient create a new ADFS client
func (*ADFSClient) Authenticate ¶
func (ac *ADFSClient) Authenticate(loginDetails *LoginDetails) (string, error)
Authenticate authenticate to ADFS and return the data from the body of the SAML assertion.
type LoginDetails ¶
LoginDetails used to authenticate to ADFS
func PromptForLoginDetails ¶
func PromptForLoginDetails(username, hostname, password string) (*LoginDetails, error)
PromptForLoginDetails prompt the user to present their username, password and hostname
func (*LoginDetails) Validate ¶
func (ld *LoginDetails) Validate() error
Validate validate the login details