options

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthenticationType_name = map[int32]string{
		0:   "BLOCKED",
		1:   "NONE",
		64:  "WORKSPACE",
		32:  "CUSTOMER_PORTAL",
		16:  "SESSION",
		80:  "WORKSPACE_SESSION",
		112: "WORKSPACE_SESSION_CUSTOMER_PORTAL",
		8:   "USER",
		4:   "CLIENT",
		20:  "SESSION_CLIENT",
		84:  "WORKSPACE_SESSION_CLIENT",
		52:  "CUSTOMER_PORTAL_SESSION_CLIENT",
	}
	AuthenticationType_value = map[string]int32{
		"BLOCKED":                           0,
		"NONE":                              1,
		"WORKSPACE":                         64,
		"CUSTOMER_PORTAL":                   32,
		"SESSION":                           16,
		"WORKSPACE_SESSION":                 80,
		"WORKSPACE_SESSION_CUSTOMER_PORTAL": 112,
		"USER":                              8,
		"CLIENT":                            4,
		"SESSION_CLIENT":                    20,
		"WORKSPACE_SESSION_CLIENT":          84,
		"CUSTOMER_PORTAL_SESSION_CLIENT":    52,
	}
)

Enum value maps for AuthenticationType.

View Source
var (
	// optional scalekit.v1.options.AuthOption auth_option = 50000;
	E_AuthOption = &file_scalekit_v1_options_options_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_scalekit_v1_options_options_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthOption

type AuthOption struct {
	AuthenticationType AuthenticationType `` /* 160-byte string literal not displayed */
	Permission         string             `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthOption) Descriptor deprecated

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

Deprecated: Use AuthOption.ProtoReflect.Descriptor instead.

func (*AuthOption) GetAuthenticationType

func (x *AuthOption) GetAuthenticationType() AuthenticationType

func (*AuthOption) GetPermission

func (x *AuthOption) GetPermission() string

func (*AuthOption) ProtoMessage

func (*AuthOption) ProtoMessage()

func (*AuthOption) ProtoReflect

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

func (*AuthOption) Reset

func (x *AuthOption) Reset()

func (*AuthOption) String

func (x *AuthOption) String() string

type AuthenticationType

type AuthenticationType int32
const (
	AuthenticationType_BLOCKED                           AuthenticationType = 0   // API is blocked / private  and default
	AuthenticationType_NONE                              AuthenticationType = 1   // API is open
	AuthenticationType_WORKSPACE                         AuthenticationType = 64  // workspace_id is in claims
	AuthenticationType_CUSTOMER_PORTAL                   AuthenticationType = 32  // claims has organisation ID
	AuthenticationType_SESSION                           AuthenticationType = 16  // claims has UI in audience
	AuthenticationType_WORKSPACE_SESSION                 AuthenticationType = 80  // workspace_id is in claims and UI in audience
	AuthenticationType_WORKSPACE_SESSION_CUSTOMER_PORTAL AuthenticationType = 112 // workspace_id,organization_id is in claims and UI in audience
	AuthenticationType_USER                              AuthenticationType = 8   // user_id is in claims
	AuthenticationType_CLIENT                            AuthenticationType = 4   // client Id is in subject
	AuthenticationType_SESSION_CLIENT                    AuthenticationType = 20  // UI in audience or client Id is in subject
	AuthenticationType_WORKSPACE_SESSION_CLIENT          AuthenticationType = 84  // workspace_id is in claims, UI in audience and client Id is in subject
	AuthenticationType_CUSTOMER_PORTAL_SESSION_CLIENT    AuthenticationType = 52  // claims has organisation ID, UI in audience and client Id is in subject
)

func (AuthenticationType) Descriptor

func (AuthenticationType) Enum

func (AuthenticationType) EnumDescriptor deprecated

func (AuthenticationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthenticationType.Descriptor instead.

func (AuthenticationType) Number

func (AuthenticationType) String

func (x AuthenticationType) String() string

func (AuthenticationType) Type

Jump to

Keyboard shortcuts

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