Documentation ¶
Index ¶
- Constants
- Variables
- func CacheOAuth(set TokenSet) error
- func CachePAT(set PATSet) error
- func CallbackHandler(w http.ResponseWriter, r *http.Request)
- func CheckToken(tokenString string) error
- func DeleteOAuthToken() error
- func DeleteOAuthTokenExpiry() error
- func DeletePatToken() error
- func DeletePatTokenExpiry() error
- func DeleteRefreshToken() error
- func DeleteRefreshTokenExpiry() error
- func GetActiveEnvironment() string
- func GetAuthToken() (string, error)
- func GetAuthType() string
- func GetAuthorizeUrl() string
- func GetBaseUrl() string
- func GetClientID(env string) (string, error)
- func GetClientSecret(env string) (string, error)
- func GetCustomExportTemplatePath() string
- func GetCustomReportTemplatePath() string
- func GetCustomSearchTemplatePath() string
- func GetDebug() bool
- func GetEnvBaseUrl(env string) string
- func GetEnvTokenUrl(env string) string
- func GetEnvironments() map[string]interface{}
- func GetOAuthRefreshExpiry() (time.Time, error)
- func GetOAuthToken() (string, error)
- func GetOAuthTokenExpiry() (time.Time, error)
- func GetPatClientID() (string, error)
- func GetPatClientSecret() (string, error)
- func GetPatToken() (string, error)
- func GetPatTokenExpiry() (time.Time, error)
- func GetRefreshToken() (string, error)
- func GetTenantUrl() string
- func GetTime(inputString string) (time.Time, error)
- func GetTokenUrl() string
- func InitAPIClient() (*sailpoint.APIClient, error)
- func InitConfig() error
- func PromptForClientID() (string, error)
- func PromptForClientSecret() (string, error)
- func ResetCacheOAuth() error
- func ResetCachePAT() error
- func SaveConfig() error
- func SetActiveEnvironment(activeEnv string)
- func SetAuthType(AuthType string)
- func SetBaseUrl(baseUrl string)
- func SetCustomExportTemplatePath(customsearchtemplatespath string)
- func SetCustomReportTemplatePath(customreporttemplatespath string)
- func SetCustomSearchTemplatePath(customsearchtemplatespath string)
- func SetDebug(Debug bool)
- func SetOAuthRefreshExpiry(expiry time.Time) error
- func SetOAuthToken(token string) error
- func SetOAuthTokenExpiry(expiry time.Time) error
- func SetPatClientID(ClientID string) error
- func SetPatClientSecret(ClientSecret string) error
- func SetPatToken(token string) error
- func SetPatTokenExpiry(expiry time.Time) error
- func SetRefreshToken(token string) error
- func SetTenantUrl(tenantUrl string)
- func SetTime(inputTime time.Time) string
- func TestSecretsStorage() bool
- func Validate() error
- type CLIConfig
- type Environment
- type PATSet
- type PatConfig
- type RefreshResponse
- type Token
- type TokenResponse
- type TokenSet
Constants ¶
View Source
const ( ClientID = "sailpoint-cli" RedirectPort = "3000" RedirectPath = "/callback" RedirectURL = "http://localhost:" + RedirectPort + RedirectPath )
View Source
const OAuthSuccessPage = `` /* 904-byte string literal not displayed */
Variables ¶
View Source
var ErrAccessTokenExpired = fmt.Errorf("accesstoken is expired")
Functions ¶
func CacheOAuth ¶
func CallbackHandler ¶
func CallbackHandler(w http.ResponseWriter, r *http.Request)
func CheckToken ¶
func DeleteOAuthToken ¶
func DeleteOAuthToken() error
func DeleteOAuthTokenExpiry ¶
func DeleteOAuthTokenExpiry() error
func DeletePatToken ¶
func DeletePatToken() error
func DeletePatTokenExpiry ¶
func DeletePatTokenExpiry() error
func DeleteRefreshToken ¶
func DeleteRefreshToken() error
func DeleteRefreshTokenExpiry ¶
func DeleteRefreshTokenExpiry() error
func GetActiveEnvironment ¶
func GetActiveEnvironment() string
func GetAuthToken ¶
func GetAuthType ¶
func GetAuthType() string
func GetAuthorizeUrl ¶
func GetAuthorizeUrl() string
func GetBaseUrl ¶
func GetBaseUrl() string
func GetClientID ¶
func GetClientSecret ¶
func GetCustomExportTemplatePath ¶
func GetCustomExportTemplatePath() string
func GetCustomReportTemplatePath ¶
func GetCustomReportTemplatePath() string
func GetCustomSearchTemplatePath ¶
func GetCustomSearchTemplatePath() string
func GetEnvBaseUrl ¶
func GetEnvTokenUrl ¶
func GetEnvironments ¶
func GetEnvironments() map[string]interface{}
func GetOAuthRefreshExpiry ¶
func GetOAuthToken ¶
func GetOAuthTokenExpiry ¶
func GetPatClientID ¶
func GetPatClientSecret ¶
func GetPatToken ¶
func GetPatTokenExpiry ¶
func GetRefreshToken ¶
func GetTenantUrl ¶
func GetTenantUrl() string
func GetTokenUrl ¶
func GetTokenUrl() string
func InitAPIClient ¶
func InitConfig ¶
func InitConfig() error
func PromptForClientID ¶
func PromptForClientSecret ¶
func ResetCacheOAuth ¶
func ResetCacheOAuth() error
func ResetCachePAT ¶
func ResetCachePAT() error
func SaveConfig ¶
func SaveConfig() error
func SetActiveEnvironment ¶
func SetActiveEnvironment(activeEnv string)
func SetAuthType ¶
func SetAuthType(AuthType string)
func SetBaseUrl ¶
func SetBaseUrl(baseUrl string)
func SetCustomExportTemplatePath ¶
func SetCustomExportTemplatePath(customsearchtemplatespath string)
func SetCustomReportTemplatePath ¶
func SetCustomReportTemplatePath(customreporttemplatespath string)
func SetCustomSearchTemplatePath ¶
func SetCustomSearchTemplatePath(customsearchtemplatespath string)
func SetOAuthRefreshExpiry ¶
func SetOAuthToken ¶
func SetOAuthTokenExpiry ¶
func SetPatClientID ¶
func SetPatClientSecret ¶
func SetPatToken ¶
func SetPatTokenExpiry ¶
func SetRefreshToken ¶
func SetTenantUrl ¶
func SetTenantUrl(tenantUrl string)
func TestSecretsStorage ¶
func TestSecretsStorage() bool
Types ¶
type CLIConfig ¶
type CLIConfig struct { //Standard Variables ExportTemplatesPath string `mapstructure:"exporttemplatespath"` SearchTemplatesPath string `mapstructure:"searchtemplatespath"` ReportTemplatesPath string `mapstructure:"reporttemplatespath"` Debug bool `mapstructure:"debug"` AuthType string `mapstructure:"authtype"` ActiveEnvironment string `mapstructure:"activeenvironment"` Environments map[string]Environment `mapstructure:"environments"` //Pipeline Variables ClientID string `mapstructure:"clientid, omitempty"` ClientSecret string `mapstructure:"clientsecret, omitempty"` BaseURL string `mapstructure:"base_url, omitempty"` AccessToken string `mapstructure:"accesstoken"` Expiry time.Time `mapstructure:"expiry"` }
type Environment ¶
type RefreshResponse ¶
type RefreshResponse struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` RefreshToken string `json:"refresh_token"` ExpiresIn int `json:"expires_in"` Scope string `json:"scope"` TenantID string `json:"tenant_id"` Internal bool `json:"internal"` Pod string `json:"pod"` StrongAuthSupported bool `json:"strong_auth_supported"` Org string `json:"org"` ClaimsSupported bool `json:"claims_supported"` IdentityID string `json:"identity_id"` StrongAuth bool `json:"strong_auth"` Jti string `json:"jti"` }
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.