auth

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package auth is a generated protocol buffer package.

It is generated from these files:

auth.proto
ldap.proto

It has these top-level messages:

Token
MatchInvalidTokenRequest
MatchInvalidTokenResponse
RevokeTokenRequest
RevokeTokenResponse
PruneTokensRequest
PruneTokensResponse
LdapSearchFilter
LdapMapping
LdapMemberOfMapping
LdapServerConfig

Package auth is a generated protocol buffer package.

It is generated from these files:

auth.proto
ldap.proto

It has these top-level messages:

Token
MatchInvalidTokenRequest
MatchInvalidTokenResponse
RevokeTokenRequest
RevokeTokenResponse
PruneTokensRequest
PruneTokensResponse
LdapSearchFilter
LdapMapping
LdapMemberOfMapping
LdapServerConfig

Index

Constants

This section is empty.

Variables

View Source
var State_name = map[int32]string{
	0: "NO_MATCH",
	1: "REVOKED",
}
View Source
var State_value = map[string]int32{
	"NO_MATCH": 0,
	"REVOKED":  1,
}

Functions

func RegisterAuthTokenRevokerHandler

func RegisterAuthTokenRevokerHandler(s server.Server, hdlr AuthTokenRevokerHandler, opts ...server.HandlerOption)

Types

type AuthTokenRevoker

type AuthTokenRevoker struct {
	AuthTokenRevokerHandler
}

func (*AuthTokenRevoker) MatchInvalid

func (*AuthTokenRevoker) PruneTokens

func (*AuthTokenRevoker) Revoke

type AuthTokenRevokerClient

type AuthTokenRevokerClient interface {
	// Look for an invalid token entry in the store that match the current one
	MatchInvalid(ctx context.Context, in *MatchInvalidTokenRequest, opts ...client.CallOption) (*MatchInvalidTokenResponse, error)
	// Revoker invalidates the current token and specifies if the invalidation is due to a refresh or a revokation
	Revoke(ctx context.Context, in *RevokeTokenRequest, opts ...client.CallOption) (*RevokeTokenResponse, error)
	// PruneTokens clear revoked tokens
	PruneTokens(ctx context.Context, in *PruneTokensRequest, opts ...client.CallOption) (*PruneTokensResponse, error)
}

func NewAuthTokenRevokerClient

func NewAuthTokenRevokerClient(serviceName string, c client.Client) AuthTokenRevokerClient

type AuthTokenRevokerHandler

type AuthTokenRevokerHandler interface {
	// Look for an invalid token entry in the store that match the current one
	MatchInvalid(context.Context, *MatchInvalidTokenRequest, *MatchInvalidTokenResponse) error
	// Revoker invalidates the current token and specifies if the invalidation is due to a refresh or a revokation
	Revoke(context.Context, *RevokeTokenRequest, *RevokeTokenResponse) error
	// PruneTokens clear revoked tokens
	PruneTokens(context.Context, *PruneTokensRequest, *PruneTokensResponse) error
}

type LdapMapping

type LdapMapping struct {
	LeftAttribute  string `protobuf:"bytes,1,opt,name=LeftAttribute" json:"LeftAttribute,omitempty"`
	RightAttribute string `protobuf:"bytes,2,opt,name=RightAttribute" json:"RightAttribute,omitempty"`
	RuleString     string `protobuf:"bytes,3,opt,name=RuleString" json:"RuleString,omitempty"`
	RolePrefix     string `protobuf:"bytes,4,opt,name=RolePrefix" json:"RolePrefix,omitempty"`
}

func (*LdapMapping) Descriptor

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

func (*LdapMapping) GetLeftAttribute

func (m *LdapMapping) GetLeftAttribute() string

func (*LdapMapping) GetRightAttribute

func (m *LdapMapping) GetRightAttribute() string

func (*LdapMapping) GetRolePrefix

func (m *LdapMapping) GetRolePrefix() string

func (*LdapMapping) GetRuleString

func (m *LdapMapping) GetRuleString() string

func (*LdapMapping) ProtoMessage

func (*LdapMapping) ProtoMessage()

func (*LdapMapping) Reset

func (m *LdapMapping) Reset()

func (*LdapMapping) String

func (m *LdapMapping) String() string

type LdapMemberOfMapping

type LdapMemberOfMapping struct {
	Mapping                  *LdapMapping      `protobuf:"bytes,1,opt,name=Mapping" json:"Mapping,omitempty"`
	GroupFilter              *LdapSearchFilter `protobuf:"bytes,2,opt,name=GroupFilter" json:"GroupFilter,omitempty"`
	SupportNestedGroup       bool              `protobuf:"varint,3,opt,name=SupportNestedGroup" json:"SupportNestedGroup,omitempty"`
	RealMemberOf             bool              `protobuf:"varint,4,opt,name=RealMemberOf" json:"RealMemberOf,omitempty"`
	RealMemberOfAttribute    string            `protobuf:"bytes,5,opt,name=RealMemberOfAttribute" json:"RealMemberOfAttribute,omitempty"`
	RealMemberOfValueFormat  string            `protobuf:"bytes,6,opt,name=RealMemberOfValueFormat" json:"RealMemberOfValueFormat,omitempty"`
	PydioMemberOfAttribute   string            `protobuf:"bytes,7,opt,name=PydioMemberOfAttribute" json:"PydioMemberOfAttribute,omitempty"`
	PydioMemberOfValueFormat string            `protobuf:"bytes,8,opt,name=PydioMemberOfValueFormat" json:"PydioMemberOfValueFormat,omitempty"`
}

func (*LdapMemberOfMapping) Descriptor

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

func (*LdapMemberOfMapping) GetGroupFilter

func (m *LdapMemberOfMapping) GetGroupFilter() *LdapSearchFilter

func (*LdapMemberOfMapping) GetMapping

func (m *LdapMemberOfMapping) GetMapping() *LdapMapping

func (*LdapMemberOfMapping) GetPydioMemberOfAttribute

func (m *LdapMemberOfMapping) GetPydioMemberOfAttribute() string

func (*LdapMemberOfMapping) GetPydioMemberOfValueFormat

func (m *LdapMemberOfMapping) GetPydioMemberOfValueFormat() string

func (*LdapMemberOfMapping) GetRealMemberOf

func (m *LdapMemberOfMapping) GetRealMemberOf() bool

func (*LdapMemberOfMapping) GetRealMemberOfAttribute

func (m *LdapMemberOfMapping) GetRealMemberOfAttribute() string

func (*LdapMemberOfMapping) GetRealMemberOfValueFormat

func (m *LdapMemberOfMapping) GetRealMemberOfValueFormat() string

func (*LdapMemberOfMapping) GetSupportNestedGroup

func (m *LdapMemberOfMapping) GetSupportNestedGroup() bool

func (*LdapMemberOfMapping) ProtoMessage

func (*LdapMemberOfMapping) ProtoMessage()

func (*LdapMemberOfMapping) Reset

func (m *LdapMemberOfMapping) Reset()

func (*LdapMemberOfMapping) String

func (m *LdapMemberOfMapping) String() string

type LdapSearchFilter

type LdapSearchFilter struct {
	DNs              []string `protobuf:"bytes,1,rep,name=DNs" json:"DNs,omitempty"`
	Filter           string   `protobuf:"bytes,2,opt,name=Filter" json:"Filter,omitempty"`
	IDAttribute      string   `protobuf:"bytes,3,opt,name=IDAttribute" json:"IDAttribute,omitempty"`
	DisplayAttribute string   `protobuf:"bytes,4,opt,name=DisplayAttribute" json:"DisplayAttribute,omitempty"`
	Scope            string   `protobuf:"bytes,5,opt,name=Scope" json:"Scope,omitempty"`
}

func (*LdapSearchFilter) Descriptor

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

func (*LdapSearchFilter) GetDNs

func (m *LdapSearchFilter) GetDNs() []string

func (*LdapSearchFilter) GetDisplayAttribute

func (m *LdapSearchFilter) GetDisplayAttribute() string

func (*LdapSearchFilter) GetFilter

func (m *LdapSearchFilter) GetFilter() string

func (*LdapSearchFilter) GetIDAttribute

func (m *LdapSearchFilter) GetIDAttribute() string

func (*LdapSearchFilter) GetScope

func (m *LdapSearchFilter) GetScope() string

func (*LdapSearchFilter) ProtoMessage

func (*LdapSearchFilter) ProtoMessage()

func (*LdapSearchFilter) Reset

func (m *LdapSearchFilter) Reset()

func (*LdapSearchFilter) String

func (m *LdapSearchFilter) String() string

type LdapServerConfig

type LdapServerConfig struct {
	ConfigId              string `protobuf:"bytes,1,opt,name=ConfigId" json:"ConfigId,omitempty"`
	DomainName            string `protobuf:"bytes,2,opt,name=DomainName" json:"DomainName,omitempty"`
	Host                  string `protobuf:"bytes,3,opt,name=Host" json:"Host,omitempty"`
	Connection            string `protobuf:"bytes,4,opt,name=Connection" json:"Connection,omitempty"`
	BindDN                string `protobuf:"bytes,5,opt,name=BindDN" json:"BindDN,omitempty"`
	BindPW                string `protobuf:"bytes,6,opt,name=BindPW" json:"BindPW,omitempty"`
	SkipVerifyCertificate bool   `protobuf:"varint,7,opt,name=SkipVerifyCertificate" json:"SkipVerifyCertificate,omitempty"`
	RootCA                string `protobuf:"bytes,8,opt,name=RootCA" json:"RootCA,omitempty"`
	// To be converted to []byte
	RootCAData       string               `protobuf:"bytes,9,opt,name=RootCAData" json:"RootCAData,omitempty"`
	PageSize         int32                `protobuf:"varint,10,opt,name=PageSize" json:"PageSize,omitempty"`
	User             *LdapSearchFilter    `protobuf:"bytes,11,opt,name=User" json:"User,omitempty"`
	MappingRules     []*LdapMapping       `protobuf:"bytes,12,rep,name=MappingRules" json:"MappingRules,omitempty"`
	MemberOfMapping  *LdapMemberOfMapping `protobuf:"bytes,13,opt,name=MemberOfMapping" json:"MemberOfMapping,omitempty"`
	RolePrefix       string               `protobuf:"bytes,14,opt,name=RolePrefix" json:"RolePrefix,omitempty"`
	Schedule         string               `protobuf:"bytes,15,opt,name=Schedule" json:"Schedule,omitempty"`
	SchedulerDetails string               `protobuf:"bytes,16,opt,name=SchedulerDetails" json:"SchedulerDetails,omitempty"`
}

func (*LdapServerConfig) Descriptor

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

func (*LdapServerConfig) GetBindDN

func (m *LdapServerConfig) GetBindDN() string

func (*LdapServerConfig) GetBindPW

func (m *LdapServerConfig) GetBindPW() string

func (*LdapServerConfig) GetConfigId

func (m *LdapServerConfig) GetConfigId() string

func (*LdapServerConfig) GetConnection

func (m *LdapServerConfig) GetConnection() string

func (*LdapServerConfig) GetDomainName

func (m *LdapServerConfig) GetDomainName() string

func (*LdapServerConfig) GetHost

func (m *LdapServerConfig) GetHost() string

func (*LdapServerConfig) GetMappingRules

func (m *LdapServerConfig) GetMappingRules() []*LdapMapping

func (*LdapServerConfig) GetMemberOfMapping

func (m *LdapServerConfig) GetMemberOfMapping() *LdapMemberOfMapping

func (*LdapServerConfig) GetPageSize

func (m *LdapServerConfig) GetPageSize() int32

func (*LdapServerConfig) GetRolePrefix

func (m *LdapServerConfig) GetRolePrefix() string

func (*LdapServerConfig) GetRootCA

func (m *LdapServerConfig) GetRootCA() string

func (*LdapServerConfig) GetRootCAData

func (m *LdapServerConfig) GetRootCAData() string

func (*LdapServerConfig) GetSchedule

func (m *LdapServerConfig) GetSchedule() string

func (*LdapServerConfig) GetSchedulerDetails

func (m *LdapServerConfig) GetSchedulerDetails() string

func (*LdapServerConfig) GetSkipVerifyCertificate

func (m *LdapServerConfig) GetSkipVerifyCertificate() bool

func (*LdapServerConfig) GetUser

func (m *LdapServerConfig) GetUser() *LdapSearchFilter

func (*LdapServerConfig) ProtoMessage

func (*LdapServerConfig) ProtoMessage()

func (*LdapServerConfig) Reset

func (m *LdapServerConfig) Reset()

func (*LdapServerConfig) String

func (m *LdapServerConfig) String() string

type MatchInvalidTokenRequest

type MatchInvalidTokenRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
}

func (*MatchInvalidTokenRequest) Descriptor

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

func (*MatchInvalidTokenRequest) GetToken

func (m *MatchInvalidTokenRequest) GetToken() string

func (*MatchInvalidTokenRequest) ProtoMessage

func (*MatchInvalidTokenRequest) ProtoMessage()

func (*MatchInvalidTokenRequest) Reset

func (m *MatchInvalidTokenRequest) Reset()

func (*MatchInvalidTokenRequest) String

func (m *MatchInvalidTokenRequest) String() string

type MatchInvalidTokenResponse

type MatchInvalidTokenResponse struct {
	State          State  `protobuf:"varint,1,opt,name=State,enum=auth.State" json:"State,omitempty"`
	RevocationInfo string `protobuf:"bytes,2,opt,name=RevocationInfo" json:"RevocationInfo,omitempty"`
}

func (*MatchInvalidTokenResponse) Descriptor

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

func (*MatchInvalidTokenResponse) GetRevocationInfo

func (m *MatchInvalidTokenResponse) GetRevocationInfo() string

func (*MatchInvalidTokenResponse) GetState

func (m *MatchInvalidTokenResponse) GetState() State

func (*MatchInvalidTokenResponse) ProtoMessage

func (*MatchInvalidTokenResponse) ProtoMessage()

func (*MatchInvalidTokenResponse) Reset

func (m *MatchInvalidTokenResponse) Reset()

func (*MatchInvalidTokenResponse) String

func (m *MatchInvalidTokenResponse) String() string

type PruneTokensRequest

type PruneTokensRequest struct {
}

func (*PruneTokensRequest) Descriptor

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

func (*PruneTokensRequest) ProtoMessage

func (*PruneTokensRequest) ProtoMessage()

func (*PruneTokensRequest) Reset

func (m *PruneTokensRequest) Reset()

func (*PruneTokensRequest) String

func (m *PruneTokensRequest) String() string

type PruneTokensResponse

type PruneTokensResponse struct {
	Tokens []string `protobuf:"bytes,1,rep,name=tokens" json:"tokens,omitempty"`
}

func (*PruneTokensResponse) Descriptor

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

func (*PruneTokensResponse) GetTokens

func (m *PruneTokensResponse) GetTokens() []string

func (*PruneTokensResponse) ProtoMessage

func (*PruneTokensResponse) ProtoMessage()

func (*PruneTokensResponse) Reset

func (m *PruneTokensResponse) Reset()

func (*PruneTokensResponse) String

func (m *PruneTokensResponse) String() string

type RevokeTokenRequest

type RevokeTokenRequest struct {
	Token *Token `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
}

func (*RevokeTokenRequest) Descriptor

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

func (*RevokeTokenRequest) GetToken

func (m *RevokeTokenRequest) GetToken() *Token

func (*RevokeTokenRequest) ProtoMessage

func (*RevokeTokenRequest) ProtoMessage()

func (*RevokeTokenRequest) Reset

func (m *RevokeTokenRequest) Reset()

func (*RevokeTokenRequest) String

func (m *RevokeTokenRequest) String() string

type RevokeTokenResponse

type RevokeTokenResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*RevokeTokenResponse) Descriptor

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

func (*RevokeTokenResponse) GetSuccess

func (m *RevokeTokenResponse) GetSuccess() bool

func (*RevokeTokenResponse) ProtoMessage

func (*RevokeTokenResponse) ProtoMessage()

func (*RevokeTokenResponse) Reset

func (m *RevokeTokenResponse) Reset()

func (*RevokeTokenResponse) String

func (m *RevokeTokenResponse) String() string

type State

type State int32
const (
	State_NO_MATCH State = 0
	State_REVOKED  State = 1
)

func (State) EnumDescriptor

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

func (State) String

func (x State) String() string

type Token

type Token struct {
	Value          string `protobuf:"bytes,1,opt,name=Value" json:"Value,omitempty"`
	AdditionalInfo string `protobuf:"bytes,2,opt,name=AdditionalInfo" json:"AdditionalInfo,omitempty"`
}

func (*Token) Descriptor

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

func (*Token) GetAdditionalInfo

func (m *Token) GetAdditionalInfo() string

func (*Token) GetValue

func (m *Token) GetValue() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

Jump to

Keyboard shortcuts

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