proto

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthenticatorID_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "PRIMARY_PASSWORD",
		2: "APP_SPECIFIC_PASSWORD",
		3: "OTP",
		4: "WEBAUTHN",
		5: "RECOVERY",
	}
	AuthenticatorID_Type_value = map[string]int32{
		"UNKNOWN":               0,
		"PRIMARY_PASSWORD":      1,
		"APP_SPECIFIC_PASSWORD": 2,
		"OTP":                   3,
		"WEBAUTHN":              4,
		"RECOVERY":              5,
	}
)

Enum value maps for AuthenticatorID_Type.

View Source
var (
	RecoveryToken_Type_name = map[int32]string{
		0: "UNKNOWN_TOKEN",
		1: "TOKEN_OFFLINE",
		2: "TOKEN_EMAIL",
	}
	RecoveryToken_Type_value = map[string]int32{
		"UNKNOWN_TOKEN": 0,
		"TOKEN_OFFLINE": 1,
		"TOKEN_EMAIL":   2,
	}
)

Enum value maps for RecoveryToken_Type.

View Source
var File_proto_idp_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppSpecificPassword

type AppSpecificPassword struct {
	Id                string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Service           string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	EncryptedPassword string `protobuf:"bytes,3,opt,name=encrypted_password,json=encryptedPassword,proto3" json:"encrypted_password,omitempty"`
	Name              string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*AppSpecificPassword) Descriptor deprecated

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

Deprecated: Use AppSpecificPassword.ProtoReflect.Descriptor instead.

func (*AppSpecificPassword) GetEncryptedPassword

func (x *AppSpecificPassword) GetEncryptedPassword() string

func (*AppSpecificPassword) GetId

func (x *AppSpecificPassword) GetId() string

func (*AppSpecificPassword) GetName

func (x *AppSpecificPassword) GetName() string

func (*AppSpecificPassword) GetService

func (x *AppSpecificPassword) GetService() string

func (*AppSpecificPassword) ProtoMessage

func (*AppSpecificPassword) ProtoMessage()

func (*AppSpecificPassword) ProtoReflect

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

func (*AppSpecificPassword) Reset

func (x *AppSpecificPassword) Reset()

func (*AppSpecificPassword) String

func (x *AppSpecificPassword) String() string

type AuthenticatorID

type AuthenticatorID struct {
	Type AuthenticatorID_Type `protobuf:"varint,1,opt,name=type,proto3,enum=idp.AuthenticatorID_Type" json:"type,omitempty"`
	Id   string               `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewAppSpecificPasswordAuthenticatorID

func NewAppSpecificPasswordAuthenticatorID(aspID string) *AuthenticatorID

func NewOTPAuthenticatorID

func NewOTPAuthenticatorID() *AuthenticatorID

func NewPrimaryPasswordAuthenticatorID

func NewPrimaryPasswordAuthenticatorID() *AuthenticatorID

func NewRecoveryAuthenticatorID

func NewRecoveryAuthenticatorID(token *RecoveryToken) *AuthenticatorID

func NewWebAuthnAuthenticatorID

func NewWebAuthnAuthenticatorID(cred *webauthn.Credential) *AuthenticatorID

func ParseAuthenticatorID

func ParseAuthenticatorID(s string) (*AuthenticatorID, error)

func (*AuthenticatorID) Descriptor deprecated

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

Deprecated: Use AuthenticatorID.ProtoReflect.Descriptor instead.

func (*AuthenticatorID) EncodeToString

func (a *AuthenticatorID) EncodeToString() string

func (*AuthenticatorID) Equal

func (a *AuthenticatorID) Equal(b *AuthenticatorID) bool

func (*AuthenticatorID) GetId

func (x *AuthenticatorID) GetId() string

func (*AuthenticatorID) GetType

func (*AuthenticatorID) ProtoMessage

func (*AuthenticatorID) ProtoMessage()

func (*AuthenticatorID) ProtoReflect

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

func (*AuthenticatorID) Reset

func (x *AuthenticatorID) Reset()

func (*AuthenticatorID) String

func (x *AuthenticatorID) String() string

type AuthenticatorID_Type

type AuthenticatorID_Type int32
const (
	AuthenticatorID_UNKNOWN               AuthenticatorID_Type = 0
	AuthenticatorID_PRIMARY_PASSWORD      AuthenticatorID_Type = 1
	AuthenticatorID_APP_SPECIFIC_PASSWORD AuthenticatorID_Type = 2
	AuthenticatorID_OTP                   AuthenticatorID_Type = 3
	AuthenticatorID_WEBAUTHN              AuthenticatorID_Type = 4
	AuthenticatorID_RECOVERY              AuthenticatorID_Type = 5
)

func (AuthenticatorID_Type) Descriptor

func (AuthenticatorID_Type) Enum

func (AuthenticatorID_Type) EnumDescriptor deprecated

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

Deprecated: Use AuthenticatorID_Type.Descriptor instead.

func (AuthenticatorID_Type) Number

func (AuthenticatorID_Type) String

func (x AuthenticatorID_Type) String() string

func (AuthenticatorID_Type) Type

type DeviceInfo

type DeviceInfo struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserAgent string `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	Browser   string `protobuf:"bytes,3,opt,name=browser,proto3" json:"browser,omitempty"`
	Os        string `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty"`
	Mobile    bool   `protobuf:"varint,5,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceInfo) Descriptor deprecated

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

Deprecated: Use DeviceInfo.ProtoReflect.Descriptor instead.

func (*DeviceInfo) GetBrowser

func (x *DeviceInfo) GetBrowser() string

func (*DeviceInfo) GetId

func (x *DeviceInfo) GetId() string

func (*DeviceInfo) GetMobile

func (x *DeviceInfo) GetMobile() bool

func (*DeviceInfo) GetOs

func (x *DeviceInfo) GetOs() string

func (*DeviceInfo) GetUserAgent

func (x *DeviceInfo) GetUserAgent() string

func (*DeviceInfo) ProtoMessage

func (*DeviceInfo) ProtoMessage()

func (*DeviceInfo) ProtoReflect

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

func (*DeviceInfo) Reset

func (x *DeviceInfo) Reset()

func (*DeviceInfo) String

func (x *DeviceInfo) String() string

type EncryptedPrivateKey

type EncryptedPrivateKey struct {
	AuthenticatorId *AuthenticatorID `protobuf:"bytes,1,opt,name=authenticator_id,json=authenticatorId,proto3" json:"authenticator_id,omitempty"`
	Data            []byte           `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptedPrivateKey) Descriptor deprecated

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

Deprecated: Use EncryptedPrivateKey.ProtoReflect.Descriptor instead.

func (*EncryptedPrivateKey) GetAuthenticatorId

func (x *EncryptedPrivateKey) GetAuthenticatorId() *AuthenticatorID

func (*EncryptedPrivateKey) GetData

func (x *EncryptedPrivateKey) GetData() []byte

func (*EncryptedPrivateKey) ProtoMessage

func (*EncryptedPrivateKey) ProtoMessage()

func (*EncryptedPrivateKey) ProtoReflect

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

func (*EncryptedPrivateKey) Reset

func (x *EncryptedPrivateKey) Reset()

func (*EncryptedPrivateKey) String

func (x *EncryptedPrivateKey) String() string

type RecoveryToken

type RecoveryToken struct {
	Id             string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type           RecoveryToken_Type     `protobuf:"varint,2,opt,name=type,proto3,enum=idp.RecoveryToken_Type" json:"type,omitempty"`
	EncryptedToken string                 `protobuf:"bytes,3,opt,name=encrypted_token,json=encryptedToken,proto3" json:"encrypted_token,omitempty"`
	ExpiresAt      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoveryToken) Descriptor deprecated

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

Deprecated: Use RecoveryToken.ProtoReflect.Descriptor instead.

func (*RecoveryToken) GetEncryptedToken

func (x *RecoveryToken) GetEncryptedToken() string

func (*RecoveryToken) GetExpiresAt

func (x *RecoveryToken) GetExpiresAt() *timestamppb.Timestamp

func (*RecoveryToken) GetId

func (x *RecoveryToken) GetId() string

func (*RecoveryToken) GetType

func (x *RecoveryToken) GetType() RecoveryToken_Type

func (*RecoveryToken) ProtoMessage

func (*RecoveryToken) ProtoMessage()

func (*RecoveryToken) ProtoReflect

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

func (*RecoveryToken) Reset

func (x *RecoveryToken) Reset()

func (*RecoveryToken) String

func (x *RecoveryToken) String() string

type RecoveryToken_Type

type RecoveryToken_Type int32
const (
	RecoveryToken_UNKNOWN_TOKEN RecoveryToken_Type = 0
	RecoveryToken_TOKEN_OFFLINE RecoveryToken_Type = 1
	RecoveryToken_TOKEN_EMAIL   RecoveryToken_Type = 2
)

func (RecoveryToken_Type) Descriptor

func (RecoveryToken_Type) Enum

func (RecoveryToken_Type) EnumDescriptor deprecated

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

Deprecated: Use RecoveryToken_Type.Descriptor instead.

func (RecoveryToken_Type) Number

func (RecoveryToken_Type) String

func (x RecoveryToken_Type) String() string

func (RecoveryToken_Type) Type

type User

type User struct {
	Id   string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Info *UserInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// Field meant as a hint to the UI (the userdb layer will enforce
	// read-onlyness).
	ReadOnly              bool                    `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
	EncryptedPassword     string                  `protobuf:"bytes,4,opt,name=encrypted_password,json=encryptedPassword,proto3" json:"encrypted_password,omitempty"`
	TotpSecret            string                  `protobuf:"bytes,5,opt,name=totp_secret,json=totpSecret,proto3" json:"totp_secret,omitempty"`
	AppSpecificPasswords  []*AppSpecificPassword  `protobuf:"bytes,6,rep,name=app_specific_passwords,json=appSpecificPasswords,proto3" json:"app_specific_passwords,omitempty"`
	WebAuthnRegistrations []*WebAuthnRegistration `` /* 126-byte string literal not displayed */
	RecoveryTokens        []*RecoveryToken        `protobuf:"bytes,8,rep,name=recovery_tokens,json=recoveryTokens,proto3" json:"recovery_tokens,omitempty"`
	// contains filtered or unexported fields
}

User object including private (authentication-related) info.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAppSpecificPasswordByID

func (u *User) GetAppSpecificPasswordByID(id string) *AppSpecificPassword

func (*User) GetAppSpecificPasswords

func (x *User) GetAppSpecificPasswords() []*AppSpecificPassword

func (*User) GetEncryptedPassword

func (x *User) GetEncryptedPassword() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetInfo

func (x *User) GetInfo() *UserInfo

func (*User) GetReadOnly

func (x *User) GetReadOnly() bool

func (*User) GetRecoveryToken

func (u *User) GetRecoveryToken(typ RecoveryToken_Type, id string) *RecoveryToken

func (*User) GetRecoveryTokens

func (x *User) GetRecoveryTokens() []*RecoveryToken

func (*User) GetTotpSecret

func (x *User) GetTotpSecret() string

func (*User) GetWebAuthnRegistrationByKeyHandle

func (u *User) GetWebAuthnRegistrationByKeyHandle(handle string) *WebAuthnRegistration

func (*User) GetWebAuthnRegistrations

func (x *User) GetWebAuthnRegistrations() []*WebAuthnRegistration

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) WebAuthnCredentials

func (u *User) WebAuthnCredentials() []webauthn.Credential

func (*User) WebAuthnDisplayName

func (u *User) WebAuthnDisplayName() string

func (*User) WebAuthnID

func (u *User) WebAuthnID() []byte

func (*User) WebAuthnIcon

func (u *User) WebAuthnIcon() string

func (*User) WebAuthnName

func (u *User) WebAuthnName() string

type UserInfo

type UserInfo struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email    string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Locale   string   `protobuf:"bytes,3,opt,name=locale,proto3" json:"locale,omitempty"`
	Timezone string   `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"`
	Groups   []string `protobuf:"bytes,5,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

Public information about a user.

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetGroups

func (x *UserInfo) GetGroups() []string

func (*UserInfo) GetLocale

func (x *UserInfo) GetLocale() string

func (*UserInfo) GetName

func (x *UserInfo) GetName() string

func (*UserInfo) GetTimezone

func (x *UserInfo) GetTimezone() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type VerificationToken

type VerificationToken struct {
	Type      string                 `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Token     string                 `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Arg       string                 `protobuf:"bytes,4,opt,name=arg,proto3" json:"arg,omitempty"`
	// contains filtered or unexported fields
}

Tokens used to validate email addresses and such.

func (*VerificationToken) Descriptor deprecated

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

Deprecated: Use VerificationToken.ProtoReflect.Descriptor instead.

func (*VerificationToken) GetArg

func (x *VerificationToken) GetArg() string

func (*VerificationToken) GetExpiresAt

func (x *VerificationToken) GetExpiresAt() *timestamppb.Timestamp

func (*VerificationToken) GetToken

func (x *VerificationToken) GetToken() string

func (*VerificationToken) GetType

func (x *VerificationToken) GetType() string

func (*VerificationToken) ProtoMessage

func (*VerificationToken) ProtoMessage()

func (*VerificationToken) ProtoReflect

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

func (*VerificationToken) Reset

func (x *VerificationToken) Reset()

func (*VerificationToken) String

func (x *VerificationToken) String() string

type WebAuthnRegistration

type WebAuthnRegistration struct {
	KeyHandle string `protobuf:"bytes,1,opt,name=key_handle,json=keyHandle,proto3" json:"key_handle,omitempty"`
	PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*WebAuthnRegistration) Descriptor deprecated

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

Deprecated: Use WebAuthnRegistration.ProtoReflect.Descriptor instead.

func (*WebAuthnRegistration) GetKeyHandle

func (x *WebAuthnRegistration) GetKeyHandle() string

func (*WebAuthnRegistration) GetName

func (x *WebAuthnRegistration) GetName() string

func (*WebAuthnRegistration) GetPublicKey

func (x *WebAuthnRegistration) GetPublicKey() string

func (*WebAuthnRegistration) HexKeyHandle

func (w *WebAuthnRegistration) HexKeyHandle() string

func (*WebAuthnRegistration) ProtoMessage

func (*WebAuthnRegistration) ProtoMessage()

func (*WebAuthnRegistration) ProtoReflect

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

func (*WebAuthnRegistration) Reset

func (x *WebAuthnRegistration) Reset()

func (*WebAuthnRegistration) String

func (x *WebAuthnRegistration) String() string

func (*WebAuthnRegistration) ToCredential

func (w *WebAuthnRegistration) ToCredential() (webauthn.Credential, error)

Jump to

Keyboard shortcuts

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