Documentation ¶
Overview ¶
Package authnv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthnAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthnAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthnAPIClient) error
- func RegisterAuthnAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthnAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthnAPIServer) error
- func RegisterAuthnAPIServer(s grpc.ServiceRegistrar, srv AuthnAPIServer)
- type AuthnAPIClient
- type AuthnAPIServer
- type CallbackRequest
- func (*CallbackRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CallbackRequest) GetCode() string
- func (x *CallbackRequest) GetError() string
- func (x *CallbackRequest) GetErrorDescription() string
- func (x *CallbackRequest) GetState() string
- func (*CallbackRequest) ProtoMessage()
- func (x *CallbackRequest) ProtoReflect() protoreflect.Message
- func (x *CallbackRequest) Reset()
- func (x *CallbackRequest) String() string
- func (m *CallbackRequest) Validate() error
- func (m *CallbackRequest) ValidateAll() error
- type CallbackRequestMultiError
- type CallbackRequestValidationError
- func (e CallbackRequestValidationError) Cause() error
- func (e CallbackRequestValidationError) Error() string
- func (e CallbackRequestValidationError) ErrorName() string
- func (e CallbackRequestValidationError) Field() string
- func (e CallbackRequestValidationError) Key() bool
- func (e CallbackRequestValidationError) Reason() string
- type CallbackResponse
- func (*CallbackResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CallbackResponse) GetAccessToken() string
- func (x *CallbackResponse) GetRefreshToken() string
- func (*CallbackResponse) ProtoMessage()
- func (x *CallbackResponse) ProtoReflect() protoreflect.Message
- func (x *CallbackResponse) Reset()
- func (x *CallbackResponse) String() string
- func (m *CallbackResponse) Validate() error
- func (m *CallbackResponse) ValidateAll() error
- type CallbackResponseMultiError
- type CallbackResponseValidationError
- func (e CallbackResponseValidationError) Cause() error
- func (e CallbackResponseValidationError) Error() string
- func (e CallbackResponseValidationError) ErrorName() string
- func (e CallbackResponseValidationError) Field() string
- func (e CallbackResponseValidationError) Key() bool
- func (e CallbackResponseValidationError) Reason() string
- type CreateTokenRequest
- func (*CreateTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenRequest) GetExpiry() *durationpb.Duration
- func (x *CreateTokenRequest) GetSubject() string
- func (x *CreateTokenRequest) GetTokenType() CreateTokenRequest_TokenType
- func (*CreateTokenRequest) ProtoMessage()
- func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTokenRequest) Reset()
- func (x *CreateTokenRequest) String() string
- func (m *CreateTokenRequest) Validate() error
- func (m *CreateTokenRequest) ValidateAll() error
- type CreateTokenRequestMultiError
- type CreateTokenRequestValidationError
- func (e CreateTokenRequestValidationError) Cause() error
- func (e CreateTokenRequestValidationError) Error() string
- func (e CreateTokenRequestValidationError) ErrorName() string
- func (e CreateTokenRequestValidationError) Field() string
- func (e CreateTokenRequestValidationError) Key() bool
- func (e CreateTokenRequestValidationError) Reason() string
- type CreateTokenRequest_TokenType
- func (CreateTokenRequest_TokenType) Descriptor() protoreflect.EnumDescriptor
- func (x CreateTokenRequest_TokenType) Enum() *CreateTokenRequest_TokenType
- func (CreateTokenRequest_TokenType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CreateTokenRequest_TokenType) Number() protoreflect.EnumNumber
- func (x CreateTokenRequest_TokenType) String() string
- func (CreateTokenRequest_TokenType) Type() protoreflect.EnumType
- type CreateTokenResponse
- func (*CreateTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenResponse) GetAccessToken() string
- func (*CreateTokenResponse) ProtoMessage()
- func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTokenResponse) Reset()
- func (x *CreateTokenResponse) String() string
- func (m *CreateTokenResponse) Validate() error
- func (m *CreateTokenResponse) ValidateAll() error
- type CreateTokenResponseMultiError
- type CreateTokenResponseValidationError
- func (e CreateTokenResponseValidationError) Cause() error
- func (e CreateTokenResponseValidationError) Error() string
- func (e CreateTokenResponseValidationError) ErrorName() string
- func (e CreateTokenResponseValidationError) Field() string
- func (e CreateTokenResponseValidationError) Key() bool
- func (e CreateTokenResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetRedirectUrl() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetAuthUrl() string
- func (m *LoginResponse) GetReturn() isLoginResponse_Return
- func (x *LoginResponse) GetToken() *LoginResponse_Token
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type LoginResponse_AuthUrl
- type LoginResponse_Token
- func (*LoginResponse_Token) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse_Token) GetAccessToken() string
- func (x *LoginResponse_Token) GetRefreshToken() string
- func (*LoginResponse_Token) ProtoMessage()
- func (x *LoginResponse_Token) ProtoReflect() protoreflect.Message
- func (x *LoginResponse_Token) Reset()
- func (x *LoginResponse_Token) String() string
- func (m *LoginResponse_Token) Validate() error
- func (m *LoginResponse_Token) ValidateAll() error
- type LoginResponse_TokenMultiError
- type LoginResponse_TokenValidationError
- func (e LoginResponse_TokenValidationError) Cause() error
- func (e LoginResponse_TokenValidationError) Error() string
- func (e LoginResponse_TokenValidationError) ErrorName() string
- func (e LoginResponse_TokenValidationError) Field() string
- func (e LoginResponse_TokenValidationError) Key() bool
- func (e LoginResponse_TokenValidationError) Reason() string
- type LoginResponse_Token_
- type UnimplementedAuthnAPIServer
- func (UnimplementedAuthnAPIServer) Callback(context.Context, *CallbackRequest) (*CallbackResponse, error)
- func (UnimplementedAuthnAPIServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
- func (UnimplementedAuthnAPIServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- type UnsafeAuthnAPIServer
Constants ¶
const ( AuthnAPI_Login_FullMethodName = "/datalift.authn.v1.AuthnAPI/Login" AuthnAPI_Callback_FullMethodName = "/datalift.authn.v1.AuthnAPI/Callback" AuthnAPI_CreateToken_FullMethodName = "/datalift.authn.v1.AuthnAPI/CreateToken" )
Variables ¶
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.
var AuthnAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "datalift.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)
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 ¶
type AuthnAPIServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Callback(context.Context, *CallbackRequest) (*CallbackResponse, error) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error) }
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 ¶
func (m CallbackRequestMultiError) Error() string
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 ¶
func (e CallbackRequestValidationError) Cause() error
Cause function returns cause value.
func (CallbackRequestValidationError) Error ¶
func (e CallbackRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CallbackRequestValidationError) ErrorName ¶
func (e CallbackRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CallbackRequestValidationError) Field ¶
func (e CallbackRequestValidationError) Field() string
Field function returns field value.
func (CallbackRequestValidationError) Key ¶
func (e CallbackRequestValidationError) Key() bool
Key function returns key value.
func (CallbackRequestValidationError) Reason ¶
func (e CallbackRequestValidationError) Reason() string
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 ¶
func (m CallbackResponseMultiError) Error() string
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 ¶
func (e CallbackResponseValidationError) Cause() error
Cause function returns cause value.
func (CallbackResponseValidationError) Error ¶
func (e CallbackResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CallbackResponseValidationError) ErrorName ¶
func (e CallbackResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CallbackResponseValidationError) Field ¶
func (e CallbackResponseValidationError) Field() string
Field function returns field value.
func (CallbackResponseValidationError) Key ¶
func (e CallbackResponseValidationError) Key() bool
Key function returns key value.
func (CallbackResponseValidationError) Reason ¶
func (e CallbackResponseValidationError) Reason() string
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 `` /* 141-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 (x *CreateTokenRequest) GetTokenType() CreateTokenRequest_TokenType
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 ¶
func (m CreateTokenRequestMultiError) Error() string
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 ¶
func (e CreateTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenRequestValidationError) Error ¶
func (e CreateTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenRequestValidationError) ErrorName ¶
func (e CreateTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenRequestValidationError) Field ¶
func (e CreateTokenRequestValidationError) Field() string
Field function returns field value.
func (CreateTokenRequestValidationError) Key ¶
func (e CreateTokenRequestValidationError) Key() bool
Key function returns key value.
func (CreateTokenRequestValidationError) Reason ¶
func (e CreateTokenRequestValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
func (CreateTokenRequest_TokenType) Enum ¶
func (x CreateTokenRequest_TokenType) Enum() *CreateTokenRequest_TokenType
func (CreateTokenRequest_TokenType) EnumDescriptor
deprecated
func (CreateTokenRequest_TokenType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CreateTokenRequest_TokenType.Descriptor instead.
func (CreateTokenRequest_TokenType) Number ¶
func (x CreateTokenRequest_TokenType) Number() protoreflect.EnumNumber
func (CreateTokenRequest_TokenType) String ¶
func (x CreateTokenRequest_TokenType) String() string
func (CreateTokenRequest_TokenType) Type ¶
func (CreateTokenRequest_TokenType) Type() protoreflect.EnumType
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 ¶
func (m CreateTokenResponseMultiError) Error() string
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 ¶
func (e CreateTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenResponseValidationError) Error ¶
func (e CreateTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenResponseValidationError) ErrorName ¶
func (e CreateTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenResponseValidationError) Field ¶
func (e CreateTokenResponseValidationError) Field() string
Field function returns field value.
func (CreateTokenResponseValidationError) Key ¶
func (e CreateTokenResponseValidationError) Key() bool
Key function returns key value.
func (CreateTokenResponseValidationError) Reason ¶
func (e CreateTokenResponseValidationError) Reason() string
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 ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
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 ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
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 ¶
func (m LoginResponse_TokenMultiError) Error() string
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 ¶
func (e LoginResponse_TokenValidationError) Cause() error
Cause function returns cause value.
func (LoginResponse_TokenValidationError) Error ¶
func (e LoginResponse_TokenValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponse_TokenValidationError) ErrorName ¶
func (e LoginResponse_TokenValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponse_TokenValidationError) Field ¶
func (e LoginResponse_TokenValidationError) Field() string
Field function returns field value.
func (LoginResponse_TokenValidationError) Key ¶
func (e LoginResponse_TokenValidationError) Key() bool
Key function returns key value.
func (LoginResponse_TokenValidationError) Reason ¶
func (e LoginResponse_TokenValidationError) Reason() string
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) Callback(context.Context, *CallbackRequest) (*CallbackResponse, error)
func (UnimplementedAuthnAPIServer) CreateToken ¶
func (UnimplementedAuthnAPIServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
func (UnimplementedAuthnAPIServer) Login ¶
func (UnimplementedAuthnAPIServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
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.