Documentation ¶
Index ¶
- func CheckAndStoreToken(apiClient *api.APIClient, token string) error
- func EnsureValidToken(apiClient api.APIClient, token string) error
- func GetAuthStatus(server string) (bool, error)
- func GetToken(server string) string
- func ReadCheckAndStoreTokenInteractively(apiClient *api.APIClient, additionalParams *url.Values) (string, error)
- func ShowServerConnectionDialog(server string, context messaging.MessagingContext) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndStoreToken ¶ added in v0.37.0
CheckAndStoreToken checks if the token is valid and stores it if it is.
func EnsureValidToken ¶ added in v0.37.0
EnsureValidToken checks if the token is valid and asks the user to log in again if it is not.
func GetAuthStatus ¶
GetAuthStatus returns the authentication status of the user for the given server.
func ReadCheckAndStoreTokenInteractively ¶ added in v0.37.0
func ReadCheckAndStoreTokenInteractively(apiClient *api.APIClient, additionalParams *url.Values) (string, error)
ReadCheckAndStoreTokenInteractively reads the API access token from the user, checks if it is valid and stores it.
func ShowServerConnectionDialog ¶
func ShowServerConnectionDialog(server string, context messaging.MessagingContext) (bool, error)
ShowServerConnectionDialog ask users if they want to use a SaaS backend if they are not authenticated and returns their wish to authenticate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.