auth

package
v0.0.0-...-9a1c626 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStaticTokenProvider

func NewStaticTokenProvider(token string) credentials.PerRPCCredentials

NewStaticTokenProvider will take the provided token and use it to populate the `x-cassandra-token` header for all requests.

func NewStaticTokenProviderUnsafe

func NewStaticTokenProviderUnsafe(token string) credentials.PerRPCCredentials

NewStaticTokenProviderUnsafe is identical to NewStaticTokenProvider except that it will set requireTransportSecurity to false for environments where transport security it not in use.

func NewTableBasedTokenProvider

func NewTableBasedTokenProvider(serviceURL, username, password string) credentials.PerRPCCredentials

NewTableBasedTokenProvider creates a token provider intended to be used with Stargate's table based token authentication mechanism. This function will generate a token by making a request to the provided Stargate auth-api URL and populating the `x-cassandra-token` header with the returned token.

func NewTableBasedTokenProviderUnsafe

func NewTableBasedTokenProviderUnsafe(serviceURL, username, password string) credentials.PerRPCCredentials

NewTableBasedTokenProviderUnsafe is identical to NewTableBasedTokenProvider except that it will set requireTransportSecurity to false for environments where transport security it not in use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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