Documentation ¶
Index ¶
- func AssertAuthorized(roleMask auth.RoleMask, spaceNode userspace.SpaceNode) func(cmd *cobra.Command, args []string)
- func AssertLoggedIn() func(cmd *cobra.Command, args []string)
- func Authenticate(config config.Config, loginMessages ...string) error
- func AuthorizeDeviceAndUser(config config.Config) error
- func ImportPrivateKey(line *liner.State) (*crypto.RSAKey, error)
- type AWSCognitoJWT
- type Preferences
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAuthorized ¶
func AssertLoggedIn ¶
func AuthorizeDeviceAndUser ¶
Types ¶
type AWSCognitoJWT ¶
type AWSCognitoJWT struct {
// contains filtered or unexported fields
}
func GetAuthenticatedToken ¶
func NewAWSCognitoJWT ¶
func NewAWSCognitoJWT(config config.Config) (*AWSCognitoJWT, error)
func (*AWSCognitoJWT) ConfigTimestamp ¶
func (awsJWT *AWSCognitoJWT) ConfigTimestamp() int64
func (*AWSCognitoJWT) KeyTimestamp ¶
func (awsJWT *AWSCognitoJWT) KeyTimestamp() int64
func (*AWSCognitoJWT) Preferences ¶
func (awsJWT *AWSCognitoJWT) Preferences() *Preferences
func (*AWSCognitoJWT) UserID ¶
func (awsJWT *AWSCognitoJWT) UserID() string
func (*AWSCognitoJWT) Username ¶
func (awsJWT *AWSCognitoJWT) Username() string
Click to show internal directories.
Click to hide internal directories.