Documentation
¶
Index ¶
Constants ¶
View Source
const ( AsertoTenantID string = "aserto-tenant-id" AsertoAccountID string = "aserto-account-id" Authorization string = "authorization" Basic string = "basic" Bearer string = "bearer" )
View Source
const ( // Host name of Aserto's hosted authorizer service. HostedAuthorizerHostname = "authorizer.prod.aserto.com" // Port of Aserto's hosted gRPC authorizer service. HostedAuthorizerGRPCPort = ":8443" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIKeyAuth ¶
type APIKeyAuth struct {
// contains filtered or unexported fields
}
APIKeyAuth API key based authentication.
It implements the interface credentials.PerRPCCredentials.
func NewAPIKeyAuth ¶
func NewAPIKeyAuth(key string) *APIKeyAuth
func (*APIKeyAuth) GetRequestMetadata ¶
func (*APIKeyAuth) RequireTransportSecurity ¶
func (k *APIKeyAuth) RequireTransportSecurity() bool
type TokenAuth ¶
type TokenAuth struct {
// contains filtered or unexported fields
}
TokenAuth bearer token based authentication.
It implements the interface credentials.PerRPCCredentials.
func NewTokenAuth ¶
func (TokenAuth) GetRequestMetadata ¶
func (TokenAuth) RequireTransportSecurity ¶
Click to show internal directories.
Click to hide internal directories.