oktaclient

package
v2.0.0-rc1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptySessionToken = errors.New("empty session token")
View Source
var ErrPasswordExpired = errors.New("password expired")

Functions

This section is empty.

Types

type Client

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

Client methods (besides ReAuth()) will automatically auth if necessary

func (*Client) AuthenticateCreds

func (c *Client) AuthenticateCreds() error

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

Do is analogous to http.Client#Do, but handles auth req.URL should reference a path relative to c.baseURL

func (*Client) DoAuth

func (c *Client) DoAuth() error

func (*Client) Get

func (c *Client) Get(path string) (*http.Response, error)

Get is analogous to http.Client#Get, but handles auth

func (*Client) ReAuth

func (c *Client) ReAuth() error

type Creds

type Creds struct {
	Username string
	Password string
	Domain   string
}

type ErrHTTP

type ErrHTTP struct {
	StatusCode int
	Method     string
	Path       string
}

func (*ErrHTTP) Error

func (e *ErrHTTP) Error() string

type ErrInvalidAuthState

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

func (*ErrInvalidAuthState) Error

func (e *ErrInvalidAuthState) Error() string

type ErrNoMatchingMFADevices

type ErrNoMatchingMFADevices struct{}

func (*ErrNoMatchingMFADevices) Error

func (e *ErrNoMatchingMFADevices) Error() string

type ErrOktaErrorResponse

type ErrOktaErrorResponse struct {
	marshal.ErrorResponse
}

func (*ErrOktaErrorResponse) Error

func (e *ErrOktaErrorResponse) Error() string

type MFAConfigDUO

type MFAConfigDUO struct {
	DeviceName string
}

Directories

Path Synopsis
internal
marshal
types and constants for (un)marshalling Okta API
types and constants for (un)marshalling Okta API
mfa
mfa/internal/duoclient
TODO refactor?
TODO refactor?

Jump to

Keyboard shortcuts

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