Documentation
¶
Index ¶
- func GetAuthTokenIfNeeded(logger zerolog.Logger, sources []*specs.Source, ...) (cqapiauth.Token, error)
- func GetTeamForToken(ctx context.Context, token auth.Token) (string, error)
- func GetTokenType() cqapiauth.TokenType
- func GetUser(ctx context.Context, token auth.Token) (*cqapi.User, error)
- func IsTeamInternal(ctx context.Context, team string) (bool, error)
- func Logout() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthTokenIfNeeded ¶
func GetTeamForToken ¶
GetTeamForToken returns the team for the given token If the token is a bearer token, we need to get the team from the configuration. For api keys the team name is not required as the key is bound to a team name already.
func GetTokenType ¶
func IsTeamInternal ¶
IsTeamInternal checks if the team has the internal flag set We store this in the configuration on team switch.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.