jssopb

package
v0.0.0-...-a92fb97 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterEnrollmentService

func RegisterEnrollmentService(s grpc.ServiceRegistrar, srv *EnrollmentService)

RegisterEnrollmentService registers a service implementation with a gRPC server.

func RegisterLoginService

func RegisterLoginService(s grpc.ServiceRegistrar, srv *LoginService)

RegisterLoginService registers a service implementation with a gRPC server.

func RegisterSessionService

func RegisterSessionService(s grpc.ServiceRegistrar, srv *SessionService)

RegisterSessionService registers a service implementation with a gRPC server.

func RegisterUserService

func RegisterUserService(s grpc.ServiceRegistrar, srv *UserService)

RegisterUserService registers a service implementation with a gRPC server.

Types

type Allow

type Allow struct {
	Username string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Groups   []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
	// A signed and encrypted token allowing the upstream application to
	// authorize this request without contacting an external system.  It is
	// scoped to this request and has a short duration, so capturing this token
	// only provides limited authenticated access.  This token is included here
	// for non-proxying API clients; the actual authorization header to pass
	// upstream is included in add_headers or append_headers fields below.
	BearerToken string `protobuf:"bytes,3,opt,name=bearer_token,json=bearerToken,proto3" json:"bearer_token,omitempty"`
	// Headers to replace when sending the request upstream.  If Authorization
	// or Cookie are unset, they should be cleared.
	AddHeaders []*types.Header `protobuf:"bytes,4,rep,name=add_headers,json=addHeaders,proto3" json:"add_headers,omitempty"`
	// contains filtered or unexported fields
}

Allow allows a request through the proxy.

func (*Allow) Descriptor deprecated

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

Deprecated: Use Allow.ProtoReflect.Descriptor instead.

func (*Allow) GetAddHeaders

func (x *Allow) GetAddHeaders() []*types.Header

func (*Allow) GetBearerToken

func (x *Allow) GetBearerToken() string

func (*Allow) GetGroups

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

func (*Allow) GetUsername

func (x *Allow) GetUsername() string

func (*Allow) ProtoMessage

func (*Allow) ProtoMessage()

func (*Allow) ProtoReflect

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

func (*Allow) Reset

func (x *Allow) Reset()

func (*Allow) String

func (x *Allow) String() string

type AuthorizeHTTPReply

type AuthorizeHTTPReply struct {

	// Types that are assignable to Decision:
	//	*AuthorizeHTTPReply_Allow
	//	*AuthorizeHTTPReply_Deny
	Decision isAuthorizeHTTPReply_Decision `protobuf_oneof:"decision"`
	// contains filtered or unexported fields
}

AuthorizeHTTPReply contains the authorization decision.

func (*AuthorizeHTTPReply) Descriptor deprecated

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

Deprecated: Use AuthorizeHTTPReply.ProtoReflect.Descriptor instead.

func (*AuthorizeHTTPReply) GetAllow

func (x *AuthorizeHTTPReply) GetAllow() *Allow

func (*AuthorizeHTTPReply) GetDecision

func (m *AuthorizeHTTPReply) GetDecision() isAuthorizeHTTPReply_Decision

func (*AuthorizeHTTPReply) GetDeny

func (x *AuthorizeHTTPReply) GetDeny() *Deny

func (*AuthorizeHTTPReply) ProtoMessage

func (*AuthorizeHTTPReply) ProtoMessage()

func (*AuthorizeHTTPReply) ProtoReflect

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

func (*AuthorizeHTTPReply) Reset

func (x *AuthorizeHTTPReply) Reset()

func (*AuthorizeHTTPReply) String

func (x *AuthorizeHTTPReply) String() string

type AuthorizeHTTPReply_Allow

type AuthorizeHTTPReply_Allow struct {
	Allow *Allow `protobuf:"bytes,1,opt,name=allow,proto3,oneof"`
}

type AuthorizeHTTPReply_Deny

type AuthorizeHTTPReply_Deny struct {
	Deny *Deny `protobuf:"bytes,2,opt,name=deny,proto3,oneof"`
}

type AuthorizeHTTPRequest

type AuthorizeHTTPRequest struct {

	// The method of this request.
	RequestMethod string `protobuf:"bytes,1,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`
	// The URI that this request is attempting to access.
	RequestUri string `protobuf:"bytes,2,opt,name=request_uri,json=requestUri,proto3" json:"request_uri,omitempty"`
	// The x-request-id header for this request.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The value of the "Authorization" HTTP header.
	AuthorizationHeaders []string `protobuf:"bytes,4,rep,name=authorization_headers,json=authorizationHeaders,proto3" json:"authorization_headers,omitempty"`
	// Any cookies included with this request.
	Cookies []string `protobuf:"bytes,5,rep,name=cookies,proto3" json:"cookies,omitempty"`
	// The IP address of the user making this request.
	IpAddress string `protobuf:"bytes,6,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// contains filtered or unexported fields
}

AuthorizeHTTPRequest is a request from an authenticating proxy to authorize one HTTP request.

func (*AuthorizeHTTPRequest) Descriptor deprecated

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

Deprecated: Use AuthorizeHTTPRequest.ProtoReflect.Descriptor instead.

func (*AuthorizeHTTPRequest) GetAuthorizationHeaders

func (x *AuthorizeHTTPRequest) GetAuthorizationHeaders() []string

func (*AuthorizeHTTPRequest) GetCookies

func (x *AuthorizeHTTPRequest) GetCookies() []string

func (*AuthorizeHTTPRequest) GetIpAddress

func (x *AuthorizeHTTPRequest) GetIpAddress() string

func (*AuthorizeHTTPRequest) GetRequestId

func (x *AuthorizeHTTPRequest) GetRequestId() string

func (*AuthorizeHTTPRequest) GetRequestMethod

func (x *AuthorizeHTTPRequest) GetRequestMethod() string

func (*AuthorizeHTTPRequest) GetRequestUri

func (x *AuthorizeHTTPRequest) GetRequestUri() string

func (*AuthorizeHTTPRequest) ProtoMessage

func (*AuthorizeHTTPRequest) ProtoMessage()

func (*AuthorizeHTTPRequest) ProtoReflect

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

func (*AuthorizeHTTPRequest) Reset

func (x *AuthorizeHTTPRequest) Reset()

func (*AuthorizeHTTPRequest) String

func (x *AuthorizeHTTPRequest) String() string

type Deny

type Deny struct {
	Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	// Types that are assignable to Destination:
	//	*Deny_Redirect_
	//	*Deny_Response_
	Destination isDeny_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

Deny denies a request through the proxy. An HTTP response can be included to inform the end-user as to what went wrong. (More likely, it will be a temporary redirect to a login page.)

func (*Deny) Descriptor deprecated

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

Deprecated: Use Deny.ProtoReflect.Descriptor instead.

func (*Deny) GetDestination

func (m *Deny) GetDestination() isDeny_Destination

func (*Deny) GetReason

func (x *Deny) GetReason() string

func (*Deny) GetRedirect

func (x *Deny) GetRedirect() *Deny_Redirect

func (*Deny) GetResponse

func (x *Deny) GetResponse() *Deny_Response

func (*Deny) ProtoMessage

func (*Deny) ProtoMessage()

func (*Deny) ProtoReflect

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

func (*Deny) Reset

func (x *Deny) Reset()

func (*Deny) String

func (x *Deny) String() string

type Deny_Redirect

type Deny_Redirect struct {
	RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Deny_Redirect) Descriptor deprecated

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

Deprecated: Use Deny_Redirect.ProtoReflect.Descriptor instead.

func (*Deny_Redirect) GetRedirectUrl

func (x *Deny_Redirect) GetRedirectUrl() string

func (*Deny_Redirect) ProtoMessage

func (*Deny_Redirect) ProtoMessage()

func (*Deny_Redirect) ProtoReflect

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

func (*Deny_Redirect) Reset

func (x *Deny_Redirect) Reset()

func (*Deny_Redirect) String

func (x *Deny_Redirect) String() string

type Deny_Redirect_

type Deny_Redirect_ struct {
	Redirect *Deny_Redirect `protobuf:"bytes,2,opt,name=redirect,proto3,oneof"`
}

type Deny_Response

type Deny_Response struct {
	ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	Body        string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Deny_Response) Descriptor deprecated

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

Deprecated: Use Deny_Response.ProtoReflect.Descriptor instead.

func (*Deny_Response) GetBody

func (x *Deny_Response) GetBody() string

func (*Deny_Response) GetContentType

func (x *Deny_Response) GetContentType() string

func (*Deny_Response) ProtoMessage

func (*Deny_Response) ProtoMessage()

func (*Deny_Response) ProtoReflect

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

func (*Deny_Response) Reset

func (x *Deny_Response) Reset()

func (*Deny_Response) String

func (x *Deny_Response) String() string

type Deny_Response_

type Deny_Response_ struct {
	Response *Deny_Response `protobuf:"bytes,3,opt,name=response,proto3,oneof"`
}

type EditUserReply

type EditUserReply struct {
	User *types.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*EditUserReply) Descriptor deprecated

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

Deprecated: Use EditUserReply.ProtoReflect.Descriptor instead.

func (*EditUserReply) GetUser

func (x *EditUserReply) GetUser() *types.User

func (*EditUserReply) ProtoMessage

func (*EditUserReply) ProtoMessage()

func (*EditUserReply) ProtoReflect

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

func (*EditUserReply) Reset

func (x *EditUserReply) Reset()

func (*EditUserReply) String

func (x *EditUserReply) String() string

type EditUserRequest

type EditUserRequest struct {
	User *types.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*EditUserRequest) Descriptor deprecated

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

Deprecated: Use EditUserRequest.ProtoReflect.Descriptor instead.

func (*EditUserRequest) GetUser

func (x *EditUserRequest) GetUser() *types.User

func (*EditUserRequest) ProtoMessage

func (*EditUserRequest) ProtoMessage()

func (*EditUserRequest) ProtoReflect

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

func (*EditUserRequest) Reset

func (x *EditUserRequest) Reset()

func (*EditUserRequest) String

func (x *EditUserRequest) String() string

type EnrollmentClient

type EnrollmentClient interface {
	Start(ctx context.Context, in *StartEnrollmentRequest, opts ...grpc.CallOption) (*StartEnrollmentReply, error)
	Finish(ctx context.Context, in *FinishEnrollmentRequest, opts ...grpc.CallOption) (*FinishEnrollmentReply, error)
}

EnrollmentClient is the client API for Enrollment service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewEnrollmentClient

func NewEnrollmentClient(cc grpc.ClientConnInterface) EnrollmentClient

type EnrollmentService

EnrollmentService is the service API for Enrollment service. Fields should be assigned to their respective handler implementations only before RegisterEnrollmentService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.

func NewEnrollmentService

func NewEnrollmentService(s interface{}) *EnrollmentService

NewEnrollmentService creates a new EnrollmentService containing the implemented methods of the Enrollment service in s. Any unimplemented methods will result in the gRPC server returning an UNIMPLEMENTED status to the client. This includes situations where the method handler is misspelled or has the wrong signature. For this reason, this function should be used with great care and is not recommended to be used by most users.

type FinishEnrollmentReply

type FinishEnrollmentReply struct {
	LoginUrl string `protobuf:"bytes,1,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"`
	// contains filtered or unexported fields
}

func (*FinishEnrollmentReply) Descriptor deprecated

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

Deprecated: Use FinishEnrollmentReply.ProtoReflect.Descriptor instead.

func (*FinishEnrollmentReply) GetLoginUrl

func (x *FinishEnrollmentReply) GetLoginUrl() string

func (*FinishEnrollmentReply) ProtoMessage

func (*FinishEnrollmentReply) ProtoMessage()

func (*FinishEnrollmentReply) ProtoReflect

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

func (*FinishEnrollmentReply) Reset

func (x *FinishEnrollmentReply) Reset()

func (*FinishEnrollmentReply) String

func (x *FinishEnrollmentReply) String() string

type FinishEnrollmentRequest

type FinishEnrollmentRequest struct {
	Credential *webauthnpb.PublicKeyCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
	Name       string                          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FinishEnrollmentRequest) Descriptor deprecated

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

Deprecated: Use FinishEnrollmentRequest.ProtoReflect.Descriptor instead.

func (*FinishEnrollmentRequest) GetCredential

func (*FinishEnrollmentRequest) GetName

func (x *FinishEnrollmentRequest) GetName() string

func (*FinishEnrollmentRequest) ProtoMessage

func (*FinishEnrollmentRequest) ProtoMessage()

func (*FinishEnrollmentRequest) ProtoReflect

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

func (*FinishEnrollmentRequest) Reset

func (x *FinishEnrollmentRequest) Reset()

func (*FinishEnrollmentRequest) String

func (x *FinishEnrollmentRequest) String() string

type FinishLoginReply

type FinishLoginReply struct {
	RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	// contains filtered or unexported fields
}

func (*FinishLoginReply) Descriptor deprecated

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

Deprecated: Use FinishLoginReply.ProtoReflect.Descriptor instead.

func (*FinishLoginReply) GetRedirectUrl

func (x *FinishLoginReply) GetRedirectUrl() string

func (*FinishLoginReply) ProtoMessage

func (*FinishLoginReply) ProtoMessage()

func (*FinishLoginReply) ProtoReflect

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

func (*FinishLoginReply) Reset

func (x *FinishLoginReply) Reset()

func (*FinishLoginReply) String

func (x *FinishLoginReply) String() string

type FinishLoginRequest

type FinishLoginRequest struct {
	Credential    *webauthnpb.PublicKeyCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
	Error         string                          `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	RedirectToken string                          `protobuf:"bytes,3,opt,name=redirect_token,json=redirectToken,proto3" json:"redirect_token,omitempty"`
	// contains filtered or unexported fields
}

func (*FinishLoginRequest) Descriptor deprecated

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

Deprecated: Use FinishLoginRequest.ProtoReflect.Descriptor instead.

func (*FinishLoginRequest) GetCredential

func (*FinishLoginRequest) GetError

func (x *FinishLoginRequest) GetError() string

func (*FinishLoginRequest) GetRedirectToken

func (x *FinishLoginRequest) GetRedirectToken() string

func (*FinishLoginRequest) ProtoMessage

func (*FinishLoginRequest) ProtoMessage()

func (*FinishLoginRequest) ProtoReflect

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

func (*FinishLoginRequest) Reset

func (x *FinishLoginRequest) Reset()

func (*FinishLoginRequest) String

func (x *FinishLoginRequest) String() string

type GenerateEnrollmentLinkReply

type GenerateEnrollmentLinkReply struct {
	Url   string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateEnrollmentLinkReply) Descriptor deprecated

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

Deprecated: Use GenerateEnrollmentLinkReply.ProtoReflect.Descriptor instead.

func (*GenerateEnrollmentLinkReply) GetToken

func (x *GenerateEnrollmentLinkReply) GetToken() string

func (*GenerateEnrollmentLinkReply) GetUrl

func (x *GenerateEnrollmentLinkReply) GetUrl() string

func (*GenerateEnrollmentLinkReply) ProtoMessage

func (*GenerateEnrollmentLinkReply) ProtoMessage()

func (*GenerateEnrollmentLinkReply) ProtoReflect

func (*GenerateEnrollmentLinkReply) Reset

func (x *GenerateEnrollmentLinkReply) Reset()

func (*GenerateEnrollmentLinkReply) String

func (x *GenerateEnrollmentLinkReply) String() string

type GenerateEnrollmentLinkRequest

type GenerateEnrollmentLinkRequest struct {
	Target *types.User `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateEnrollmentLinkRequest) Descriptor deprecated

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

Deprecated: Use GenerateEnrollmentLinkRequest.ProtoReflect.Descriptor instead.

func (*GenerateEnrollmentLinkRequest) GetTarget

func (x *GenerateEnrollmentLinkRequest) GetTarget() *types.User

func (*GenerateEnrollmentLinkRequest) ProtoMessage

func (*GenerateEnrollmentLinkRequest) ProtoMessage()

func (*GenerateEnrollmentLinkRequest) ProtoReflect

func (*GenerateEnrollmentLinkRequest) Reset

func (x *GenerateEnrollmentLinkRequest) Reset()

func (*GenerateEnrollmentLinkRequest) String

type LoginClient

type LoginClient interface {
	Start(ctx context.Context, in *StartLoginRequest, opts ...grpc.CallOption) (*StartLoginReply, error)
	Finish(ctx context.Context, in *FinishLoginRequest, opts ...grpc.CallOption) (*FinishLoginReply, error)
}

LoginClient is the client API for Login service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewLoginClient

func NewLoginClient(cc grpc.ClientConnInterface) LoginClient

type LoginService

type LoginService struct {
	Start  func(context.Context, *StartLoginRequest) (*StartLoginReply, error)
	Finish func(context.Context, *FinishLoginRequest) (*FinishLoginReply, error)
}

LoginService is the service API for Login service. Fields should be assigned to their respective handler implementations only before RegisterLoginService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.

func NewLoginService

func NewLoginService(s interface{}) *LoginService

NewLoginService creates a new LoginService containing the implemented methods of the Login service in s. Any unimplemented methods will result in the gRPC server returning an UNIMPLEMENTED status to the client. This includes situations where the method handler is misspelled or has the wrong signature. For this reason, this function should be used with great care and is not recommended to be used by most users.

type SessionClient

type SessionClient interface {
	// AuthorizeHTTP authorizes an incoming HTTP request, returning a
	// request-scoped bearer token to authenticate the request to upstream
	// systems.  A "deny" authorization decision will not be transmitted as a
	// gRPC error; a gRPC error like PermissionDenied means that the caller is
	// not authorized to call AuthorizeHTTP, not that the HTTP request is
	// unauthorized.  (Corollary: an OK response code does not mean the request
	// is authorized.)
	AuthorizeHTTP(ctx context.Context, in *AuthorizeHTTPRequest, opts ...grpc.CallOption) (*AuthorizeHTTPReply, error)
}

SessionClient is the client API for Session service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSessionClient

func NewSessionClient(cc grpc.ClientConnInterface) SessionClient

type SessionService

type SessionService struct {
	// AuthorizeHTTP authorizes an incoming HTTP request, returning a
	// request-scoped bearer token to authenticate the request to upstream
	// systems.  A "deny" authorization decision will not be transmitted as a
	// gRPC error; a gRPC error like PermissionDenied means that the caller is
	// not authorized to call AuthorizeHTTP, not that the HTTP request is
	// unauthorized.  (Corollary: an OK response code does not mean the request
	// is authorized.)
	AuthorizeHTTP func(context.Context, *AuthorizeHTTPRequest) (*AuthorizeHTTPReply, error)
}

SessionService is the service API for Session service. Fields should be assigned to their respective handler implementations only before RegisterSessionService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.

func NewSessionService

func NewSessionService(s interface{}) *SessionService

NewSessionService creates a new SessionService containing the implemented methods of the Session service in s. Any unimplemented methods will result in the gRPC server returning an UNIMPLEMENTED status to the client. This includes situations where the method handler is misspelled or has the wrong signature. For this reason, this function should be used with great care and is not recommended to be used by most users.

type StartEnrollmentReply

type StartEnrollmentReply struct {
	User                      *types.User                                    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	CredentialCreationOptions *webauthnpb.PublicKeyCredentialCreationOptions `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StartEnrollmentReply) Descriptor deprecated

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

Deprecated: Use StartEnrollmentReply.ProtoReflect.Descriptor instead.

func (*StartEnrollmentReply) GetCredentialCreationOptions

func (x *StartEnrollmentReply) GetCredentialCreationOptions() *webauthnpb.PublicKeyCredentialCreationOptions

func (*StartEnrollmentReply) GetUser

func (x *StartEnrollmentReply) GetUser() *types.User

func (*StartEnrollmentReply) ProtoMessage

func (*StartEnrollmentReply) ProtoMessage()

func (*StartEnrollmentReply) ProtoReflect

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

func (*StartEnrollmentReply) Reset

func (x *StartEnrollmentReply) Reset()

func (*StartEnrollmentReply) String

func (x *StartEnrollmentReply) String() string

type StartEnrollmentRequest

type StartEnrollmentRequest struct {
	// contains filtered or unexported fields
}

func (*StartEnrollmentRequest) Descriptor deprecated

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

Deprecated: Use StartEnrollmentRequest.ProtoReflect.Descriptor instead.

func (*StartEnrollmentRequest) ProtoMessage

func (*StartEnrollmentRequest) ProtoMessage()

func (*StartEnrollmentRequest) ProtoReflect

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

func (*StartEnrollmentRequest) Reset

func (x *StartEnrollmentRequest) Reset()

func (*StartEnrollmentRequest) String

func (x *StartEnrollmentRequest) String() string

type StartLoginReply

type StartLoginReply struct {
	CredentialRequestOptions *webauthnpb.PublicKeyCredentialRequestOptions `` /* 135-byte string literal not displayed */
	Token                    string                                        `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*StartLoginReply) Descriptor deprecated

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

Deprecated: Use StartLoginReply.ProtoReflect.Descriptor instead.

func (*StartLoginReply) GetCredentialRequestOptions

func (x *StartLoginReply) GetCredentialRequestOptions() *webauthnpb.PublicKeyCredentialRequestOptions

func (*StartLoginReply) GetToken

func (x *StartLoginReply) GetToken() string

func (*StartLoginReply) ProtoMessage

func (*StartLoginReply) ProtoMessage()

func (*StartLoginReply) ProtoReflect

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

func (*StartLoginReply) Reset

func (x *StartLoginReply) Reset()

func (*StartLoginReply) String

func (x *StartLoginReply) String() string

type StartLoginRequest

type StartLoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*StartLoginRequest) Descriptor deprecated

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

Deprecated: Use StartLoginRequest.ProtoReflect.Descriptor instead.

func (*StartLoginRequest) GetUsername

func (x *StartLoginRequest) GetUsername() string

func (*StartLoginRequest) ProtoMessage

func (*StartLoginRequest) ProtoMessage()

func (*StartLoginRequest) ProtoReflect

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

func (*StartLoginRequest) Reset

func (x *StartLoginRequest) Reset()

func (*StartLoginRequest) String

func (x *StartLoginRequest) String() string

type UnstableEnrollmentService

type UnstableEnrollmentService interface {
	Start(context.Context, *StartEnrollmentRequest) (*StartEnrollmentReply, error)
	Finish(context.Context, *FinishEnrollmentRequest) (*FinishEnrollmentReply, error)
}

UnstableEnrollmentService is the service API for Enrollment service. New methods may be added to this interface if they are added to the service definition, which is not a backward-compatible change. For this reason, use of this type is not recommended.

type UnstableLoginService

type UnstableLoginService interface {
	Start(context.Context, *StartLoginRequest) (*StartLoginReply, error)
	Finish(context.Context, *FinishLoginRequest) (*FinishLoginReply, error)
}

UnstableLoginService is the service API for Login service. New methods may be added to this interface if they are added to the service definition, which is not a backward-compatible change. For this reason, use of this type is not recommended.

type UnstableSessionService

type UnstableSessionService interface {
	// AuthorizeHTTP authorizes an incoming HTTP request, returning a
	// request-scoped bearer token to authenticate the request to upstream
	// systems.  A "deny" authorization decision will not be transmitted as a
	// gRPC error; a gRPC error like PermissionDenied means that the caller is
	// not authorized to call AuthorizeHTTP, not that the HTTP request is
	// unauthorized.  (Corollary: an OK response code does not mean the request
	// is authorized.)
	AuthorizeHTTP(context.Context, *AuthorizeHTTPRequest) (*AuthorizeHTTPReply, error)
}

UnstableSessionService is the service API for Session service. New methods may be added to this interface if they are added to the service definition, which is not a backward-compatible change. For this reason, use of this type is not recommended.

type UnstableUserService

type UnstableUserService interface {
	// Edit adds a new user if the ID is 0, or updates an existing user.
	Edit(context.Context, *EditUserRequest) (*EditUserReply, error)
	// GenerateEnrollmentLink generates an enrollment token for the user.
	GenerateEnrollmentLink(context.Context, *GenerateEnrollmentLinkRequest) (*GenerateEnrollmentLinkReply, error)
	// WhoAmI returns the user object associated with the current session.  When
	// called without a session, a null current user is returned rather than an
	// error.
	WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIReply, error)
}

UnstableUserService is the service API for User service. New methods may be added to this interface if they are added to the service definition, which is not a backward-compatible change. For this reason, use of this type is not recommended.

type UserClient

type UserClient interface {
	// Edit adds a new user if the ID is 0, or updates an existing user.
	Edit(ctx context.Context, in *EditUserRequest, opts ...grpc.CallOption) (*EditUserReply, error)
	// GenerateEnrollmentLink generates an enrollment token for the user.
	GenerateEnrollmentLink(ctx context.Context, in *GenerateEnrollmentLinkRequest, opts ...grpc.CallOption) (*GenerateEnrollmentLinkReply, error)
	// WhoAmI returns the user object associated with the current session.  When
	// called without a session, a null current user is returned rather than an
	// error.
	WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIReply, error)
}

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserService

type UserService struct {
	// Edit adds a new user if the ID is 0, or updates an existing user.
	Edit func(context.Context, *EditUserRequest) (*EditUserReply, error)
	// GenerateEnrollmentLink generates an enrollment token for the user.
	GenerateEnrollmentLink func(context.Context, *GenerateEnrollmentLinkRequest) (*GenerateEnrollmentLinkReply, error)
	// WhoAmI returns the user object associated with the current session.  When
	// called without a session, a null current user is returned rather than an
	// error.
	WhoAmI func(context.Context, *WhoAmIRequest) (*WhoAmIReply, error)
}

UserService is the service API for User service. Fields should be assigned to their respective handler implementations only before RegisterUserService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.

func NewUserService

func NewUserService(s interface{}) *UserService

NewUserService creates a new UserService containing the implemented methods of the User service in s. Any unimplemented methods will result in the gRPC server returning an UNIMPLEMENTED status to the client. This includes situations where the method handler is misspelled or has the wrong signature. For this reason, this function should be used with great care and is not recommended to be used by most users.

type WhoAmIReply

type WhoAmIReply struct {
	User *types.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*WhoAmIReply) Descriptor deprecated

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

Deprecated: Use WhoAmIReply.ProtoReflect.Descriptor instead.

func (*WhoAmIReply) GetUser

func (x *WhoAmIReply) GetUser() *types.User

func (*WhoAmIReply) ProtoMessage

func (*WhoAmIReply) ProtoMessage()

func (*WhoAmIReply) ProtoReflect

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

func (*WhoAmIReply) Reset

func (x *WhoAmIReply) Reset()

func (*WhoAmIReply) String

func (x *WhoAmIReply) String() string

type WhoAmIRequest

type WhoAmIRequest struct {
	// contains filtered or unexported fields
}

func (*WhoAmIRequest) Descriptor deprecated

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

Deprecated: Use WhoAmIRequest.ProtoReflect.Descriptor instead.

func (*WhoAmIRequest) ProtoMessage

func (*WhoAmIRequest) ProtoMessage()

func (*WhoAmIRequest) ProtoReflect

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

func (*WhoAmIRequest) Reset

func (x *WhoAmIRequest) Reset()

func (*WhoAmIRequest) String

func (x *WhoAmIRequest) String() string

Jump to

Keyboard shortcuts

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