jumpcloud

package
v2.14.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	Context    string
	RedirectTo string
	Email      string
	Password   string
	OTP        string
}

AuthRequest is to be sent to JumpCloud as the auth req body

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a wrapper representing a JumpCloud SAML client

func New

func New(idpAccount *cfg.IDPAccount) (*Client, error)

New creates a new JumpCloud client

func (*Client) Authenticate

func (jc *Client) Authenticate(loginDetails *creds.LoginDetails) (string, error)

Authenticate logs into JumpCloud and returns a SAML response

type JCRedirect

type JCRedirect struct {
	Address string `json:"redirectTo"`
}

JCRedirect is for unmarshalling the redirect address from the response after the auth

type XSRF

type XSRF struct {
	Token string `json:"xsrf"`
}

XSRF is for unmarshalling the xsrf token in the response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL