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 (*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
Click to show internal directories.
Click to hide internal directories.