statepb

package
v0.0.0-...-b41c0b7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package statepb contains protos used internally by loginsessions.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LoginSession

type LoginSession struct {

	// Unique ID of the session, matches luci.auth.loginsessions.LoginSession.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Password protecting access to GetLoginSession RPC.
	Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// The current session state.
	State loginsessionspb.LoginSession_State `protobuf:"varint,3,opt,name=state,proto3,enum=luci.auth.loginsessions.LoginSession_State" json:"state,omitempty"`
	// When the session was created. Always populated.
	Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	// When the session will expire. Always populated.
	Expiry *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// When the session moved to a final state. Populated for finished sessions.
	Completed *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completed,proto3" json:"completed,omitempty"`
	// Details provided in CreateLoginSessionRequest. Always populated.
	OauthClientId          string                           `protobuf:"bytes,7,opt,name=oauth_client_id,json=oauthClientId,proto3" json:"oauth_client_id,omitempty"`
	OauthScopes            []string                         `protobuf:"bytes,8,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"`
	OauthS256CodeChallenge string                           `` /* 131-byte string literal not displayed */
	ExecutableName         string                           `protobuf:"bytes,10,opt,name=executable_name,json=executableName,proto3" json:"executable_name,omitempty"`
	ClientHostname         string                           `protobuf:"bytes,11,opt,name=client_hostname,json=clientHostname,proto3" json:"client_hostname,omitempty"`
	ConfirmationCodes      []*LoginSession_ConfirmationCode `protobuf:"bytes,12,rep,name=confirmation_codes,json=confirmationCodes,proto3" json:"confirmation_codes,omitempty"`
	// The outcome of the protocol.
	OauthAuthorizationCode string `` /* 130-byte string literal not displayed */
	OauthRedirectUrl       string `protobuf:"bytes,14,opt,name=oauth_redirect_url,json=oauthRedirectUrl,proto3" json:"oauth_redirect_url,omitempty"`
	OauthError             string `protobuf:"bytes,15,opt,name=oauth_error,json=oauthError,proto3" json:"oauth_error,omitempty"`
	// contains filtered or unexported fields
}

LoginSession is stored in the datastore.

It is a superset of luci.auth.loginsessions.LoginSession from the public API that has additional internal fields.

func (*LoginSession) Descriptor deprecated

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

Deprecated: Use LoginSession.ProtoReflect.Descriptor instead.

func (*LoginSession) GetClientHostname

func (x *LoginSession) GetClientHostname() string

func (*LoginSession) GetCompleted

func (x *LoginSession) GetCompleted() *timestamppb.Timestamp

func (*LoginSession) GetConfirmationCodes

func (x *LoginSession) GetConfirmationCodes() []*LoginSession_ConfirmationCode

func (*LoginSession) GetCreated

func (x *LoginSession) GetCreated() *timestamppb.Timestamp

func (*LoginSession) GetExecutableName

func (x *LoginSession) GetExecutableName() string

func (*LoginSession) GetExpiry

func (x *LoginSession) GetExpiry() *timestamppb.Timestamp

func (*LoginSession) GetId

func (x *LoginSession) GetId() string

func (*LoginSession) GetOauthAuthorizationCode

func (x *LoginSession) GetOauthAuthorizationCode() string

func (*LoginSession) GetOauthClientId

func (x *LoginSession) GetOauthClientId() string

func (*LoginSession) GetOauthError

func (x *LoginSession) GetOauthError() string

func (*LoginSession) GetOauthRedirectUrl

func (x *LoginSession) GetOauthRedirectUrl() string

func (*LoginSession) GetOauthS256CodeChallenge

func (x *LoginSession) GetOauthS256CodeChallenge() string

func (*LoginSession) GetOauthScopes

func (x *LoginSession) GetOauthScopes() []string

func (*LoginSession) GetPassword

func (x *LoginSession) GetPassword() []byte

func (*LoginSession) GetState

func (*LoginSession) ProtoMessage

func (*LoginSession) ProtoMessage()

func (*LoginSession) ProtoReflect

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

func (*LoginSession) Reset

func (x *LoginSession) Reset()

func (*LoginSession) String

func (x *LoginSession) String() string

type LoginSession_ConfirmationCode

type LoginSession_ConfirmationCode struct {
	Code    string                 `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Expiry  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	Refresh *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=refresh,proto3" json:"refresh,omitempty"`
	// contains filtered or unexported fields
}

Active (non-expired) confirmation codes.

func (*LoginSession_ConfirmationCode) Descriptor deprecated

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

Deprecated: Use LoginSession_ConfirmationCode.ProtoReflect.Descriptor instead.

func (*LoginSession_ConfirmationCode) GetCode

func (*LoginSession_ConfirmationCode) GetExpiry

func (*LoginSession_ConfirmationCode) GetRefresh

func (*LoginSession_ConfirmationCode) ProtoMessage

func (*LoginSession_ConfirmationCode) ProtoMessage()

func (*LoginSession_ConfirmationCode) ProtoReflect

func (*LoginSession_ConfirmationCode) Reset

func (x *LoginSession_ConfirmationCode) Reset()

func (*LoginSession_ConfirmationCode) String

type OpenIDState

type OpenIDState struct {
	LoginSessionId   string `protobuf:"bytes,1,opt,name=login_session_id,json=loginSessionId,proto3" json:"login_session_id,omitempty"`
	LoginCookieValue string `protobuf:"bytes,2,opt,name=login_cookie_value,json=loginCookieValue,proto3" json:"login_cookie_value,omitempty"`
	// contains filtered or unexported fields
}

OpenIDState is encrypted and used as `state` in OpenID Connect protocol.

func (*OpenIDState) Descriptor deprecated

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

Deprecated: Use OpenIDState.ProtoReflect.Descriptor instead.

func (*OpenIDState) GetLoginCookieValue

func (x *OpenIDState) GetLoginCookieValue() string

func (*OpenIDState) GetLoginSessionId

func (x *OpenIDState) GetLoginSessionId() string

func (*OpenIDState) ProtoMessage

func (*OpenIDState) ProtoMessage()

func (*OpenIDState) ProtoReflect

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

func (*OpenIDState) Reset

func (x *OpenIDState) Reset()

func (*OpenIDState) String

func (x *OpenIDState) String() string

Jump to

Keyboard shortcuts

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