auth

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_controller_auth_v1_auth_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RequestInfo

type RequestInfo struct {

	// path of the request
	Path string `protobuf:"bytes,10,opt,name=path,proto3" json:"path,omitempty"`
	// method (http verb) of the request
	Method string `protobuf:"bytes,20,opt,name=method,proto3" json:"method,omitempty"`
	// public_id for the request
	PublicId string `protobuf:"bytes,30,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"`
	// encrypted_token from the request
	EncryptedToken string `protobuf:"bytes,40,opt,name=encrypted_token,json=encryptedToken,proto3" json:"encrypted_token,omitempty"`
	// token from the request
	Token string `protobuf:"bytes,50,opt,name=token,proto3" json:"token,omitempty"`
	// token_format of the request's token
	TokenFormat uint32 `protobuf:"varint,60,opt,name=token_format,json=tokenFormat,proto3" json:"token_format,omitempty"`
	// scope_id_override for the request (helpful for tests)
	ScopeIdOverride string `protobuf:"bytes,70,opt,name=scope_id_override,json=scopeIdOverride,proto3" json:"scope_id_override,omitempty"`
	// user_id_override for the request (helpful for tests)
	UserIdOverride string `protobuf:"bytes,80,opt,name=user_id_override,json=userIdOverride,proto3" json:"user_id_override,omitempty"`
	// disable_authz_failures for the request (helpful for tests)
	DisableAuthzFailures bool `protobuf:"varint,90,opt,name=disable_authz_failures,json=disableAuthzFailures,proto3" json:"disable_authz_failures,omitempty"`
	// disable_auth_entirely for the request (helpful for tests)
	DisableAuthEntirely bool `protobuf:"varint,100,opt,name=disable_auth_entirely,json=disableAuthEntirely,proto3" json:"disable_auth_entirely,omitempty"`
	// ticket is a unique id that allows the grpc-gateway to verify that the info
	// came from its companion http proxy
	Ticket string `protobuf:"bytes,110,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// trace_id is the request's trace_id
	TraceId string `protobuf:"bytes,120,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// event_id is the request's event id
	EventId string `protobuf:"bytes,130,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// the client ip for the request
	ClientIp string `protobuf:"bytes,140,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
	// contains filtered or unexported fields
}

RequestInfo contains request parameters necessary for checking authn/authz

func (*RequestInfo) Descriptor deprecated

func (*RequestInfo) Descriptor() ([]byte, []int)

Deprecated: Use RequestInfo.ProtoReflect.Descriptor instead.

func (*RequestInfo) GetClientIp added in v0.7.4

func (x *RequestInfo) GetClientIp() string

func (*RequestInfo) GetDisableAuthEntirely

func (x *RequestInfo) GetDisableAuthEntirely() bool

func (*RequestInfo) GetDisableAuthzFailures

func (x *RequestInfo) GetDisableAuthzFailures() bool

func (*RequestInfo) GetEncryptedToken

func (x *RequestInfo) GetEncryptedToken() string

func (*RequestInfo) GetEventId

func (x *RequestInfo) GetEventId() string

func (*RequestInfo) GetMethod

func (x *RequestInfo) GetMethod() string

func (*RequestInfo) GetPath

func (x *RequestInfo) GetPath() string

func (*RequestInfo) GetPublicId

func (x *RequestInfo) GetPublicId() string

func (*RequestInfo) GetScopeIdOverride

func (x *RequestInfo) GetScopeIdOverride() string

func (*RequestInfo) GetTicket

func (x *RequestInfo) GetTicket() string

func (*RequestInfo) GetToken

func (x *RequestInfo) GetToken() string

func (*RequestInfo) GetTokenFormat

func (x *RequestInfo) GetTokenFormat() uint32

func (*RequestInfo) GetTraceId

func (x *RequestInfo) GetTraceId() string

func (*RequestInfo) GetUserIdOverride

func (x *RequestInfo) GetUserIdOverride() string

func (*RequestInfo) ProtoMessage

func (*RequestInfo) ProtoMessage()

func (*RequestInfo) ProtoReflect

func (x *RequestInfo) ProtoReflect() protoreflect.Message

func (*RequestInfo) Reset

func (x *RequestInfo) Reset()

func (*RequestInfo) String

func (x *RequestInfo) String() string

Jump to

Keyboard shortcuts

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