authnv1

package
v0.0.0-...-e01fbee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package authnv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AuthnAPI_Login_FullMethodName       = "/clutch.authn.v1.AuthnAPI/Login"
	AuthnAPI_Callback_FullMethodName    = "/clutch.authn.v1.AuthnAPI/Callback"
	AuthnAPI_CreateToken_FullMethodName = "/clutch.authn.v1.AuthnAPI/CreateToken"
)

Variables

View Source
var (
	CreateTokenRequest_TokenType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "SERVICE",
	}
	CreateTokenRequest_TokenType_value = map[string]int32{
		"UNSPECIFIED": 0,
		"SERVICE":     1,
	}
)

Enum value maps for CreateTokenRequest_TokenType.

View Source
var AuthnAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clutch.authn.v1.AuthnAPI",
	HandlerType: (*AuthnAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _AuthnAPI_Login_Handler,
		},
		{
			MethodName: "Callback",
			Handler:    _AuthnAPI_Callback_Handler,
		},
		{
			MethodName: "CreateToken",
			Handler:    _AuthnAPI_CreateToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authn/v1/authn.proto",
}

AuthnAPI_ServiceDesc is the grpc.ServiceDesc for AuthnAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_authn_v1_authn_proto protoreflect.FileDescriptor

Functions

func RegisterAuthnAPIHandler

func RegisterAuthnAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthnAPIHandler registers the http handlers for service AuthnAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthnAPIHandlerClient

func RegisterAuthnAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthnAPIClient) error

RegisterAuthnAPIHandlerClient registers the http handlers for service AuthnAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthnAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthnAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthnAPIClient" to call the correct interceptors.

func RegisterAuthnAPIHandlerFromEndpoint

func RegisterAuthnAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthnAPIHandlerFromEndpoint is same as RegisterAuthnAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthnAPIHandlerServer

func RegisterAuthnAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthnAPIServer) error

RegisterAuthnAPIHandlerServer registers the http handlers for service AuthnAPI to "mux". UnaryRPC :call AuthnAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthnAPIHandlerFromEndpoint instead.

func RegisterAuthnAPIServer

func RegisterAuthnAPIServer(s grpc.ServiceRegistrar, srv AuthnAPIServer)

Types

type AuthnAPIClient

type AuthnAPIClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*CallbackResponse, error)
	CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error)
}

AuthnAPIClient is the client API for AuthnAPI 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 NewAuthnAPIClient

func NewAuthnAPIClient(cc grpc.ClientConnInterface) AuthnAPIClient

type AuthnAPIServer

AuthnAPIServer is the server API for AuthnAPI service. All implementations should embed UnimplementedAuthnAPIServer for forward compatibility

type CallbackRequest

type CallbackRequest struct {
	Code             string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	State            string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	Error            string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	ErrorDescription string `protobuf:"bytes,4,opt,name=error_description,json=errorDescription,proto3" json:"error_description,omitempty"`
	// contains filtered or unexported fields
}

See https://www.oauth.com/oauth2-servers/authorization/the-authorization-response/ for description of the parameters.

func (*CallbackRequest) Descriptor deprecated

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

Deprecated: Use CallbackRequest.ProtoReflect.Descriptor instead.

func (*CallbackRequest) GetCode

func (x *CallbackRequest) GetCode() string

func (*CallbackRequest) GetError

func (x *CallbackRequest) GetError() string

func (*CallbackRequest) GetErrorDescription

func (x *CallbackRequest) GetErrorDescription() string

func (*CallbackRequest) GetState

func (x *CallbackRequest) GetState() string

func (*CallbackRequest) ProtoMessage

func (*CallbackRequest) ProtoMessage()

func (*CallbackRequest) ProtoReflect

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

func (*CallbackRequest) Reset

func (x *CallbackRequest) Reset()

func (*CallbackRequest) String

func (x *CallbackRequest) String() string

func (*CallbackRequest) Validate

func (m *CallbackRequest) Validate() error

Validate checks the field values on CallbackRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CallbackRequest) ValidateAll

func (m *CallbackRequest) ValidateAll() error

ValidateAll checks the field values on CallbackRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CallbackRequestMultiError, or nil if none found.

type CallbackRequestMultiError

type CallbackRequestMultiError []error

CallbackRequestMultiError is an error wrapping multiple validation errors returned by CallbackRequest.ValidateAll() if the designated constraints aren't met.

func (CallbackRequestMultiError) AllErrors

func (m CallbackRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CallbackRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CallbackRequestValidationError

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

CallbackRequestValidationError is the validation error returned by CallbackRequest.Validate if the designated constraints aren't met.

func (CallbackRequestValidationError) Cause

Cause function returns cause value.

func (CallbackRequestValidationError) Error

Error satisfies the builtin error interface

func (CallbackRequestValidationError) ErrorName

func (e CallbackRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CallbackRequestValidationError) Field

Field function returns field value.

func (CallbackRequestValidationError) Key

Key function returns key value.

func (CallbackRequestValidationError) Reason

Reason function returns reason value.

type CallbackResponse

type CallbackResponse struct {

	// This is the token that the user should present. Note: this response is only valid in a gRPC context. In an HTTP
	// context the user will be redirected.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// The refresh token will be empty if no refresh token was issued.
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*CallbackResponse) Descriptor deprecated

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

Deprecated: Use CallbackResponse.ProtoReflect.Descriptor instead.

func (*CallbackResponse) GetAccessToken

func (x *CallbackResponse) GetAccessToken() string

func (*CallbackResponse) GetRefreshToken

func (x *CallbackResponse) GetRefreshToken() string

func (*CallbackResponse) ProtoMessage

func (*CallbackResponse) ProtoMessage()

func (*CallbackResponse) ProtoReflect

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

func (*CallbackResponse) Reset

func (x *CallbackResponse) Reset()

func (*CallbackResponse) String

func (x *CallbackResponse) String() string

func (*CallbackResponse) Validate

func (m *CallbackResponse) Validate() error

Validate checks the field values on CallbackResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CallbackResponse) ValidateAll

func (m *CallbackResponse) ValidateAll() error

ValidateAll checks the field values on CallbackResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CallbackResponseMultiError, or nil if none found.

type CallbackResponseMultiError

type CallbackResponseMultiError []error

CallbackResponseMultiError is an error wrapping multiple validation errors returned by CallbackResponse.ValidateAll() if the designated constraints aren't met.

func (CallbackResponseMultiError) AllErrors

func (m CallbackResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CallbackResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CallbackResponseValidationError

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

CallbackResponseValidationError is the validation error returned by CallbackResponse.Validate if the designated constraints aren't met.

func (CallbackResponseValidationError) Cause

Cause function returns cause value.

func (CallbackResponseValidationError) Error

Error satisfies the builtin error interface

func (CallbackResponseValidationError) ErrorName

ErrorName returns error name.

func (CallbackResponseValidationError) Field

Field function returns field value.

func (CallbackResponseValidationError) Key

Key function returns key value.

func (CallbackResponseValidationError) Reason

Reason function returns reason value.

type CreateTokenRequest

type CreateTokenRequest struct {

	// The subject to issue this token for.
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// The duration until this token should expire. If unset, the token will never expire.
	Expiry *durationpb.Duration `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// The kind of token to issue. This provides namespacing to avoid naming collisions.
	TokenType CreateTokenRequest_TokenType `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateTokenRequest) Descriptor deprecated

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

Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead.

func (*CreateTokenRequest) GetExpiry

func (x *CreateTokenRequest) GetExpiry() *durationpb.Duration

func (*CreateTokenRequest) GetSubject

func (x *CreateTokenRequest) GetSubject() string

func (*CreateTokenRequest) GetTokenType

func (*CreateTokenRequest) ProtoMessage

func (*CreateTokenRequest) ProtoMessage()

func (*CreateTokenRequest) ProtoReflect

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

func (*CreateTokenRequest) Reset

func (x *CreateTokenRequest) Reset()

func (*CreateTokenRequest) String

func (x *CreateTokenRequest) String() string

func (*CreateTokenRequest) Validate

func (m *CreateTokenRequest) Validate() error

Validate checks the field values on CreateTokenRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateTokenRequest) ValidateAll

func (m *CreateTokenRequest) ValidateAll() error

ValidateAll checks the field values on CreateTokenRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTokenRequestMultiError, or nil if none found.

type CreateTokenRequestMultiError

type CreateTokenRequestMultiError []error

CreateTokenRequestMultiError is an error wrapping multiple validation errors returned by CreateTokenRequest.ValidateAll() if the designated constraints aren't met.

func (CreateTokenRequestMultiError) AllErrors

func (m CreateTokenRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTokenRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTokenRequestValidationError

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

CreateTokenRequestValidationError is the validation error returned by CreateTokenRequest.Validate if the designated constraints aren't met.

func (CreateTokenRequestValidationError) Cause

Cause function returns cause value.

func (CreateTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTokenRequestValidationError) Field

Field function returns field value.

func (CreateTokenRequestValidationError) Key

Key function returns key value.

func (CreateTokenRequestValidationError) Reason

Reason function returns reason value.

type CreateTokenRequest_TokenType

type CreateTokenRequest_TokenType int32
const (
	CreateTokenRequest_UNSPECIFIED CreateTokenRequest_TokenType = 0
	// Token is issued on behalf of another service for programmatic access.
	CreateTokenRequest_SERVICE CreateTokenRequest_TokenType = 1
)

func (CreateTokenRequest_TokenType) Descriptor

func (CreateTokenRequest_TokenType) Enum

func (CreateTokenRequest_TokenType) EnumDescriptor deprecated

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

Deprecated: Use CreateTokenRequest_TokenType.Descriptor instead.

func (CreateTokenRequest_TokenType) Number

func (CreateTokenRequest_TokenType) String

func (CreateTokenRequest_TokenType) Type

type CreateTokenResponse

type CreateTokenResponse struct {

	// The access token associated with the newly created token.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTokenResponse) Descriptor deprecated

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

Deprecated: Use CreateTokenResponse.ProtoReflect.Descriptor instead.

func (*CreateTokenResponse) GetAccessToken

func (x *CreateTokenResponse) GetAccessToken() string

func (*CreateTokenResponse) ProtoMessage

func (*CreateTokenResponse) ProtoMessage()

func (*CreateTokenResponse) ProtoReflect

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

func (*CreateTokenResponse) Reset

func (x *CreateTokenResponse) Reset()

func (*CreateTokenResponse) String

func (x *CreateTokenResponse) String() string

func (*CreateTokenResponse) Validate

func (m *CreateTokenResponse) Validate() error

Validate checks the field values on CreateTokenResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateTokenResponse) ValidateAll

func (m *CreateTokenResponse) ValidateAll() error

ValidateAll checks the field values on CreateTokenResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTokenResponseMultiError, or nil if none found.

type CreateTokenResponseMultiError

type CreateTokenResponseMultiError []error

CreateTokenResponseMultiError is an error wrapping multiple validation errors returned by CreateTokenResponse.ValidateAll() if the designated constraints aren't met.

func (CreateTokenResponseMultiError) AllErrors

func (m CreateTokenResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTokenResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTokenResponseValidationError

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

CreateTokenResponseValidationError is the validation error returned by CreateTokenResponse.Validate if the designated constraints aren't met.

func (CreateTokenResponseValidationError) Cause

Cause function returns cause value.

func (CreateTokenResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateTokenResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateTokenResponseValidationError) Field

Field function returns field value.

func (CreateTokenResponseValidationError) Key

Key function returns key value.

func (CreateTokenResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

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

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetRedirectUrl

func (x *LoginRequest) GetRedirectUrl() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

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

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {

	// If the user presents a refresh token and refresh succeeds, they will receive the token in response. Otherwise,
	// they will be redirected through the authentication flow.
	//
	// Types that are assignable to Return:
	//
	//	*LoginResponse_AuthUrl
	//	*LoginResponse_Token_
	Return isLoginResponse_Return `protobuf_oneof:"return"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetAuthUrl

func (x *LoginResponse) GetAuthUrl() string

func (*LoginResponse) GetReturn

func (m *LoginResponse) GetReturn() isLoginResponse_Return

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() *LoginResponse_Token

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

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

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type LoginResponse_AuthUrl

type LoginResponse_AuthUrl struct {
	AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3,oneof"`
}

type LoginResponse_Token

type LoginResponse_Token struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse_Token) Descriptor deprecated

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

Deprecated: Use LoginResponse_Token.ProtoReflect.Descriptor instead.

func (*LoginResponse_Token) GetAccessToken

func (x *LoginResponse_Token) GetAccessToken() string

func (*LoginResponse_Token) GetRefreshToken

func (x *LoginResponse_Token) GetRefreshToken() string

func (*LoginResponse_Token) ProtoMessage

func (*LoginResponse_Token) ProtoMessage()

func (*LoginResponse_Token) ProtoReflect

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

func (*LoginResponse_Token) Reset

func (x *LoginResponse_Token) Reset()

func (*LoginResponse_Token) String

func (x *LoginResponse_Token) String() string

func (*LoginResponse_Token) Validate

func (m *LoginResponse_Token) Validate() error

Validate checks the field values on LoginResponse_Token with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse_Token) ValidateAll

func (m *LoginResponse_Token) ValidateAll() error

ValidateAll checks the field values on LoginResponse_Token with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponse_TokenMultiError, or nil if none found.

type LoginResponse_TokenMultiError

type LoginResponse_TokenMultiError []error

LoginResponse_TokenMultiError is an error wrapping multiple validation errors returned by LoginResponse_Token.ValidateAll() if the designated constraints aren't met.

func (LoginResponse_TokenMultiError) AllErrors

func (m LoginResponse_TokenMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponse_TokenMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LoginResponse_TokenValidationError

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

LoginResponse_TokenValidationError is the validation error returned by LoginResponse_Token.Validate if the designated constraints aren't met.

func (LoginResponse_TokenValidationError) Cause

Cause function returns cause value.

func (LoginResponse_TokenValidationError) Error

Error satisfies the builtin error interface

func (LoginResponse_TokenValidationError) ErrorName

ErrorName returns error name.

func (LoginResponse_TokenValidationError) Field

Field function returns field value.

func (LoginResponse_TokenValidationError) Key

Key function returns key value.

func (LoginResponse_TokenValidationError) Reason

Reason function returns reason value.

type LoginResponse_Token_

type LoginResponse_Token_ struct {
	Token *LoginResponse_Token `protobuf:"bytes,2,opt,name=token,proto3,oneof"`
}

type UnimplementedAuthnAPIServer

type UnimplementedAuthnAPIServer struct {
}

UnimplementedAuthnAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthnAPIServer) Callback

func (UnimplementedAuthnAPIServer) CreateToken

func (UnimplementedAuthnAPIServer) Login

type UnsafeAuthnAPIServer

type UnsafeAuthnAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthnAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthnAPIServer will result in compilation errors.

Jump to

Keyboard shortcuts

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