auth

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndStoreToken added in v0.37.0

func CheckAndStoreToken(apiClient *api.APIClient, token string) error

CheckAndStoreToken checks if the token is valid and stores it if it is.

func EnsureValidToken added in v0.37.0

func EnsureValidToken(apiClient api.APIClient, token string) error

EnsureValidToken checks if the token is valid and asks the user to log in again if it is not.

func GetAuthStatus

func GetAuthStatus(server string) (bool, error)

GetAuthStatus returns the authentication status of the user for the given server.

func GetToken added in v0.37.0

func GetToken(server string) string

GetToken returns the API access token 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.

Jump to

Keyboard shortcuts

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