Documentation ¶
Index ¶
- func GetSaml(r io.Reader) (string, error)
- type OktaAppLink
- type OktaAuthFactors
- type OktaAuthResponse
- type OktaAuthResponseEmbedded
- type OktaClient
- func (o *OktaClient) Authenticate(username, password, org, factor string) (string, error)
- func (o *OktaClient) AuthenticateFromCache(username, org string) (string, bool)
- func (o *OktaClient) CacheOktaSession(userId, org, sessionId, expiresAt string)
- func (o *OktaClient) ClearCachedOktaSession()
- func (o *OktaClient) GetCachedOktaSession(userid, org string) (file.OktaSessionCache, bool)
- func (o *OktaClient) GetSaml(appLink OktaAppLink) (string, error)
- func (o *OktaClient) ListAppLinks(userId string) ([]OktaAppLink, error)
- func (o *OktaClient) ListApplications(userId string) ([]OktaAppLink, error)
- type OktaLinks
- type OktaMeResponse
- type OktaSessionResponse
- type OktaSessionsRequest
- type OktaVerifyLink
- type SessionCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OktaAppLink ¶
type OktaAuthFactors ¶
type OktaAuthResponse ¶
type OktaAuthResponseEmbedded ¶
type OktaAuthResponseEmbedded struct {
Factors []OktaAuthFactors `json:"factors"`
}
type OktaClient ¶
type OktaClient struct { HttpClient *http.Client SessionCache SessionCache ConsoleReader console.ConsoleReader BaseUrl *url.URL Timeout time.Duration Retries int }
func NewOktaClient ¶
func NewOktaClient(org string, consolerw console.ConsoleReader) (*OktaClient, error)
func (*OktaClient) Authenticate ¶
func (o *OktaClient) Authenticate(username, password, org, factor string) (string, error)
func (*OktaClient) AuthenticateFromCache ¶
func (o *OktaClient) AuthenticateFromCache(username, org string) (string, bool)
func (*OktaClient) CacheOktaSession ¶
func (o *OktaClient) CacheOktaSession(userId, org, sessionId, expiresAt string)
func (*OktaClient) ClearCachedOktaSession ¶
func (o *OktaClient) ClearCachedOktaSession()
func (*OktaClient) GetCachedOktaSession ¶
func (o *OktaClient) GetCachedOktaSession(userid, org string) (file.OktaSessionCache, bool)
func (*OktaClient) GetSaml ¶
func (o *OktaClient) GetSaml(appLink OktaAppLink) (string, error)
func (*OktaClient) ListAppLinks ¶
func (o *OktaClient) ListAppLinks(userId string) ([]OktaAppLink, error)
func (*OktaClient) ListApplications ¶
func (o *OktaClient) ListApplications(userId string) ([]OktaAppLink, error)
type OktaLinks ¶
type OktaLinks struct {
Verify OktaVerifyLink `json:"verify"`
}
type OktaMeResponse ¶
type OktaMeResponse struct {
Id string `json:"id"`
}
type OktaSessionResponse ¶
type OktaSessionsRequest ¶
type OktaSessionsRequest struct {
SessionToken string `json:"sessionToken"`
}
type OktaVerifyLink ¶
type OktaVerifyLink struct {
Url string `json:"href"`
}
type SessionCache ¶
type SessionCache interface { ClearSessions() SaveSessions(sessions []file.OktaSessionCache) Sessions() ([]file.OktaSessionCache, error) }
Click to show internal directories.
Click to hide internal directories.