Documentation ¶
Overview ¶
pb contains the protobuf definition and its generated code. The protocol is designed to resemble idp.Interface. By doing so, adapter implementations can be provided in order to free users from having to worry about the GRPC details. See the github.com/absurdlab/dyna-go-sdk/idp/grpc package for client and server implementations.
As a note, the idp.pb.go file in this directory is generated by the command:
// Install protobuf package on the OS before proceeding. // For Mac OS, run `brew install protobuf` protoc -I=./ --go_out=plugins=grpc:. idp.proto
Index ¶
- Variables
- func RegisterIdpServer(s *grpc.Server, srv IdpServer)
- type AuthenticationDetailsRequest
- func (*AuthenticationDetailsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationDetailsRequest) GetAmr() string
- func (x *AuthenticationDetailsRequest) GetSubject() string
- func (*AuthenticationDetailsRequest) ProtoMessage()
- func (x *AuthenticationDetailsRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticationDetailsRequest) Reset()
- func (x *AuthenticationDetailsRequest) String() string
- type AuthenticationDetailsResponse
- func (*AuthenticationDetailsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationDetailsResponse) GetAmr() string
- func (x *AuthenticationDetailsResponse) GetDetails() []byte
- func (x *AuthenticationDetailsResponse) GetMeta() *Meta
- func (*AuthenticationDetailsResponse) ProtoMessage()
- func (x *AuthenticationDetailsResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticationDetailsResponse) Reset()
- func (x *AuthenticationDetailsResponse) String() string
- type AuthenticationPolicyRequest
- func (*AuthenticationPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationPolicyRequest) GetAcr() string
- func (x *AuthenticationPolicyRequest) GetSubject() string
- func (*AuthenticationPolicyRequest) ProtoMessage()
- func (x *AuthenticationPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticationPolicyRequest) Reset()
- func (x *AuthenticationPolicyRequest) String() string
- type AuthenticationPolicyResponse
- func (*AuthenticationPolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationPolicyResponse) GetAcr() string
- func (x *AuthenticationPolicyResponse) GetAmr() []string
- func (x *AuthenticationPolicyResponse) GetMeta() *Meta
- func (*AuthenticationPolicyResponse) ProtoMessage()
- func (x *AuthenticationPolicyResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticationPolicyResponse) Reset()
- func (x *AuthenticationPolicyResponse) String() string
- type Error
- type GetClaimsRequest
- func (*GetClaimsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClaimsRequest) GetClaims() []string
- func (x *GetClaimsRequest) GetSubject() string
- func (*GetClaimsRequest) ProtoMessage()
- func (x *GetClaimsRequest) ProtoReflect() protoreflect.Message
- func (x *GetClaimsRequest) Reset()
- func (x *GetClaimsRequest) String() string
- type GetClaimsResponse
- func (*GetClaimsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetClaimsResponse) GetData() []byte
- func (x *GetClaimsResponse) GetMeta() *Meta
- func (*GetClaimsResponse) ProtoMessage()
- func (x *GetClaimsResponse) ProtoReflect() protoreflect.Message
- func (x *GetClaimsResponse) Reset()
- func (x *GetClaimsResponse) String() string
- type GetUserRequest
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetDetail() []byte
- func (x *GetUserResponse) GetMeta() *Meta
- func (x *GetUserResponse) GetSubject() string
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type IdpClient
- type IdpServer
- type Meta
- type PasswordValidationRequest
- func (*PasswordValidationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordValidationRequest) GetPassword() string
- func (x *PasswordValidationRequest) GetSubject() string
- func (*PasswordValidationRequest) ProtoMessage()
- func (x *PasswordValidationRequest) ProtoReflect() protoreflect.Message
- func (x *PasswordValidationRequest) Reset()
- func (x *PasswordValidationRequest) String() string
- type PasswordValidationResponse
- func (*PasswordValidationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordValidationResponse) GetMeta() *Meta
- func (*PasswordValidationResponse) ProtoMessage()
- func (x *PasswordValidationResponse) ProtoReflect() protoreflect.Message
- func (x *PasswordValidationResponse) Reset()
- func (x *PasswordValidationResponse) String() string
- type UnimplementedIdpServer
- func (*UnimplementedIdpServer) CheckPassword(context.Context, *PasswordValidationRequest) (*PasswordValidationResponse, error)
- func (*UnimplementedIdpServer) GetAuthDetails(context.Context, *AuthenticationDetailsRequest) (*AuthenticationDetailsResponse, error)
- func (*UnimplementedIdpServer) GetAuthPolicy(context.Context, *AuthenticationPolicyRequest) (*AuthenticationPolicyResponse, error)
- func (*UnimplementedIdpServer) GetClaims(context.Context, *GetClaimsRequest) (*GetClaimsResponse, error)
- func (*UnimplementedIdpServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_idp_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIdpServer ¶
Types ¶
type AuthenticationDetailsRequest ¶
type AuthenticationDetailsRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Amr string `protobuf:"bytes,2,opt,name=amr,proto3" json:"amr,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationDetailsRequest) Descriptor
deprecated
func (*AuthenticationDetailsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationDetailsRequest.ProtoReflect.Descriptor instead.
func (*AuthenticationDetailsRequest) GetAmr ¶
func (x *AuthenticationDetailsRequest) GetAmr() string
func (*AuthenticationDetailsRequest) GetSubject ¶
func (x *AuthenticationDetailsRequest) GetSubject() string
func (*AuthenticationDetailsRequest) ProtoMessage ¶
func (*AuthenticationDetailsRequest) ProtoMessage()
func (*AuthenticationDetailsRequest) ProtoReflect ¶
func (x *AuthenticationDetailsRequest) ProtoReflect() protoreflect.Message
func (*AuthenticationDetailsRequest) Reset ¶
func (x *AuthenticationDetailsRequest) Reset()
func (*AuthenticationDetailsRequest) String ¶
func (x *AuthenticationDetailsRequest) String() string
type AuthenticationDetailsResponse ¶
type AuthenticationDetailsResponse struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Amr string `protobuf:"bytes,2,opt,name=amr,proto3" json:"amr,omitempty"` Details []byte `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationDetailsResponse) Descriptor
deprecated
func (*AuthenticationDetailsResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationDetailsResponse.ProtoReflect.Descriptor instead.
func (*AuthenticationDetailsResponse) GetAmr ¶
func (x *AuthenticationDetailsResponse) GetAmr() string
func (*AuthenticationDetailsResponse) GetDetails ¶
func (x *AuthenticationDetailsResponse) GetDetails() []byte
func (*AuthenticationDetailsResponse) GetMeta ¶
func (x *AuthenticationDetailsResponse) GetMeta() *Meta
func (*AuthenticationDetailsResponse) ProtoMessage ¶
func (*AuthenticationDetailsResponse) ProtoMessage()
func (*AuthenticationDetailsResponse) ProtoReflect ¶
func (x *AuthenticationDetailsResponse) ProtoReflect() protoreflect.Message
func (*AuthenticationDetailsResponse) Reset ¶
func (x *AuthenticationDetailsResponse) Reset()
func (*AuthenticationDetailsResponse) String ¶
func (x *AuthenticationDetailsResponse) String() string
type AuthenticationPolicyRequest ¶
type AuthenticationPolicyRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Acr string `protobuf:"bytes,2,opt,name=acr,proto3" json:"acr,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationPolicyRequest) Descriptor
deprecated
func (*AuthenticationPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationPolicyRequest.ProtoReflect.Descriptor instead.
func (*AuthenticationPolicyRequest) GetAcr ¶
func (x *AuthenticationPolicyRequest) GetAcr() string
func (*AuthenticationPolicyRequest) GetSubject ¶
func (x *AuthenticationPolicyRequest) GetSubject() string
func (*AuthenticationPolicyRequest) ProtoMessage ¶
func (*AuthenticationPolicyRequest) ProtoMessage()
func (*AuthenticationPolicyRequest) ProtoReflect ¶
func (x *AuthenticationPolicyRequest) ProtoReflect() protoreflect.Message
func (*AuthenticationPolicyRequest) Reset ¶
func (x *AuthenticationPolicyRequest) Reset()
func (*AuthenticationPolicyRequest) String ¶
func (x *AuthenticationPolicyRequest) String() string
type AuthenticationPolicyResponse ¶
type AuthenticationPolicyResponse struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Amr []string `protobuf:"bytes,2,rep,name=amr,proto3" json:"amr,omitempty"` Acr string `protobuf:"bytes,3,opt,name=acr,proto3" json:"acr,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationPolicyResponse) Descriptor
deprecated
func (*AuthenticationPolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationPolicyResponse.ProtoReflect.Descriptor instead.
func (*AuthenticationPolicyResponse) GetAcr ¶
func (x *AuthenticationPolicyResponse) GetAcr() string
func (*AuthenticationPolicyResponse) GetAmr ¶
func (x *AuthenticationPolicyResponse) GetAmr() []string
func (*AuthenticationPolicyResponse) GetMeta ¶
func (x *AuthenticationPolicyResponse) GetMeta() *Meta
func (*AuthenticationPolicyResponse) ProtoMessage ¶
func (*AuthenticationPolicyResponse) ProtoMessage()
func (*AuthenticationPolicyResponse) ProtoReflect ¶
func (x *AuthenticationPolicyResponse) ProtoReflect() protoreflect.Message
func (*AuthenticationPolicyResponse) Reset ¶
func (x *AuthenticationPolicyResponse) Reset()
func (*AuthenticationPolicyResponse) String ¶
func (x *AuthenticationPolicyResponse) String() string
type Error ¶
type Error struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetDescription ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type GetClaimsRequest ¶
type GetClaimsRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Claims []string `protobuf:"bytes,2,rep,name=claims,proto3" json:"claims,omitempty"` // contains filtered or unexported fields }
func (*GetClaimsRequest) Descriptor
deprecated
func (*GetClaimsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClaimsRequest.ProtoReflect.Descriptor instead.
func (*GetClaimsRequest) GetClaims ¶
func (x *GetClaimsRequest) GetClaims() []string
func (*GetClaimsRequest) GetSubject ¶
func (x *GetClaimsRequest) GetSubject() string
func (*GetClaimsRequest) ProtoMessage ¶
func (*GetClaimsRequest) ProtoMessage()
func (*GetClaimsRequest) ProtoReflect ¶
func (x *GetClaimsRequest) ProtoReflect() protoreflect.Message
func (*GetClaimsRequest) Reset ¶
func (x *GetClaimsRequest) Reset()
func (*GetClaimsRequest) String ¶
func (x *GetClaimsRequest) String() string
type GetClaimsResponse ¶
type GetClaimsResponse struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetClaimsResponse) Descriptor
deprecated
func (*GetClaimsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetClaimsResponse.ProtoReflect.Descriptor instead.
func (*GetClaimsResponse) GetData ¶
func (x *GetClaimsResponse) GetData() []byte
func (*GetClaimsResponse) GetMeta ¶
func (x *GetClaimsResponse) GetMeta() *Meta
func (*GetClaimsResponse) ProtoMessage ¶
func (*GetClaimsResponse) ProtoMessage()
func (*GetClaimsResponse) ProtoReflect ¶
func (x *GetClaimsResponse) ProtoReflect() protoreflect.Message
func (*GetClaimsResponse) Reset ¶
func (x *GetClaimsResponse) Reset()
func (*GetClaimsResponse) String ¶
func (x *GetClaimsResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetUsername ¶
func (x *GetUserRequest) GetUsername() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Detail []byte `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetDetail ¶
func (x *GetUserResponse) GetDetail() []byte
func (*GetUserResponse) GetMeta ¶
func (x *GetUserResponse) GetMeta() *Meta
func (*GetUserResponse) GetSubject ¶
func (x *GetUserResponse) GetSubject() string
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type IdpClient ¶
type IdpClient interface { GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) GetClaims(ctx context.Context, in *GetClaimsRequest, opts ...grpc.CallOption) (*GetClaimsResponse, error) GetAuthPolicy(ctx context.Context, in *AuthenticationPolicyRequest, opts ...grpc.CallOption) (*AuthenticationPolicyResponse, error) GetAuthDetails(ctx context.Context, in *AuthenticationDetailsRequest, opts ...grpc.CallOption) (*AuthenticationDetailsResponse, error) CheckPassword(ctx context.Context, in *PasswordValidationRequest, opts ...grpc.CallOption) (*PasswordValidationResponse, error) }
IdpClient is the client API for Idp service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIdpClient ¶
func NewIdpClient(cc grpc.ClientConnInterface) IdpClient
type IdpServer ¶
type IdpServer interface { GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) GetClaims(context.Context, *GetClaimsRequest) (*GetClaimsResponse, error) GetAuthPolicy(context.Context, *AuthenticationPolicyRequest) (*AuthenticationPolicyResponse, error) GetAuthDetails(context.Context, *AuthenticationDetailsRequest) (*AuthenticationDetailsResponse, error) CheckPassword(context.Context, *PasswordValidationRequest) (*PasswordValidationResponse, error) }
IdpServer is the server API for Idp service.
type Meta ¶
type Meta struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Meta) Descriptor
deprecated
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
type PasswordValidationRequest ¶
type PasswordValidationRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*PasswordValidationRequest) Descriptor
deprecated
func (*PasswordValidationRequest) Descriptor() ([]byte, []int)
Deprecated: Use PasswordValidationRequest.ProtoReflect.Descriptor instead.
func (*PasswordValidationRequest) GetPassword ¶
func (x *PasswordValidationRequest) GetPassword() string
func (*PasswordValidationRequest) GetSubject ¶
func (x *PasswordValidationRequest) GetSubject() string
func (*PasswordValidationRequest) ProtoMessage ¶
func (*PasswordValidationRequest) ProtoMessage()
func (*PasswordValidationRequest) ProtoReflect ¶
func (x *PasswordValidationRequest) ProtoReflect() protoreflect.Message
func (*PasswordValidationRequest) Reset ¶
func (x *PasswordValidationRequest) Reset()
func (*PasswordValidationRequest) String ¶
func (x *PasswordValidationRequest) String() string
type PasswordValidationResponse ¶
type PasswordValidationResponse struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*PasswordValidationResponse) Descriptor
deprecated
func (*PasswordValidationResponse) Descriptor() ([]byte, []int)
Deprecated: Use PasswordValidationResponse.ProtoReflect.Descriptor instead.
func (*PasswordValidationResponse) GetMeta ¶
func (x *PasswordValidationResponse) GetMeta() *Meta
func (*PasswordValidationResponse) ProtoMessage ¶
func (*PasswordValidationResponse) ProtoMessage()
func (*PasswordValidationResponse) ProtoReflect ¶
func (x *PasswordValidationResponse) ProtoReflect() protoreflect.Message
func (*PasswordValidationResponse) Reset ¶
func (x *PasswordValidationResponse) Reset()
func (*PasswordValidationResponse) String ¶
func (x *PasswordValidationResponse) String() string
type UnimplementedIdpServer ¶
type UnimplementedIdpServer struct { }
UnimplementedIdpServer can be embedded to have forward compatible implementations.
func (*UnimplementedIdpServer) CheckPassword ¶
func (*UnimplementedIdpServer) CheckPassword(context.Context, *PasswordValidationRequest) (*PasswordValidationResponse, error)
func (*UnimplementedIdpServer) GetAuthDetails ¶
func (*UnimplementedIdpServer) GetAuthDetails(context.Context, *AuthenticationDetailsRequest) (*AuthenticationDetailsResponse, error)
func (*UnimplementedIdpServer) GetAuthPolicy ¶
func (*UnimplementedIdpServer) GetAuthPolicy(context.Context, *AuthenticationPolicyRequest) (*AuthenticationPolicyResponse, error)
func (*UnimplementedIdpServer) GetClaims ¶
func (*UnimplementedIdpServer) GetClaims(context.Context, *GetClaimsRequest) (*GetClaimsResponse, error)
func (*UnimplementedIdpServer) GetUser ¶
func (*UnimplementedIdpServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)