Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSAMLIdPServiceServer(s grpc.ServiceRegistrar, srv SAMLIdPServiceServer)
- type MappedAttribute
- func (*MappedAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *MappedAttribute) GetMappedValues() map[string]*wrappers.StringValues
- func (x *MappedAttribute) GetUsername() string
- func (*MappedAttribute) ProtoMessage()
- func (x *MappedAttribute) ProtoReflect() protoreflect.Message
- func (x *MappedAttribute) Reset()
- func (x *MappedAttribute) String() string
- type ProcessSAMLIdPRequestRequest
- func (*ProcessSAMLIdPRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessSAMLIdPRequestRequest) GetAssertion() []byte
- func (x *ProcessSAMLIdPRequestRequest) GetDestination() string
- func (x *ProcessSAMLIdPRequestRequest) GetMetadataUrl() string
- func (x *ProcessSAMLIdPRequestRequest) GetRequestId() string
- func (x *ProcessSAMLIdPRequestRequest) GetRequestTime() *timestamppb.Timestamp
- func (x *ProcessSAMLIdPRequestRequest) GetServiceProviderSsoDescriptor() []byte
- func (x *ProcessSAMLIdPRequestRequest) GetSignatureMethod() string
- func (*ProcessSAMLIdPRequestRequest) ProtoMessage()
- func (x *ProcessSAMLIdPRequestRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessSAMLIdPRequestRequest) Reset()
- func (x *ProcessSAMLIdPRequestRequest) String() string
- type ProcessSAMLIdPRequestResponse
- func (*ProcessSAMLIdPRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessSAMLIdPRequestResponse) GetResponse() []byte
- func (*ProcessSAMLIdPRequestResponse) ProtoMessage()
- func (x *ProcessSAMLIdPRequestResponse) ProtoReflect() protoreflect.Message
- func (x *ProcessSAMLIdPRequestResponse) Reset()
- func (x *ProcessSAMLIdPRequestResponse) String() string
- type SAMLIdPServiceClient
- type SAMLIdPServiceServer
- type TestSAMLIdPAttributeMappingRequest
- func (*TestSAMLIdPAttributeMappingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestSAMLIdPAttributeMappingRequest) GetServiceProvider() *types.SAMLIdPServiceProviderV1
- func (x *TestSAMLIdPAttributeMappingRequest) GetUsers() []*types.UserV2
- func (*TestSAMLIdPAttributeMappingRequest) ProtoMessage()
- func (x *TestSAMLIdPAttributeMappingRequest) ProtoReflect() protoreflect.Message
- func (x *TestSAMLIdPAttributeMappingRequest) Reset()
- func (x *TestSAMLIdPAttributeMappingRequest) String() string
- type TestSAMLIdPAttributeMappingResponse
- func (*TestSAMLIdPAttributeMappingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestSAMLIdPAttributeMappingResponse) GetMappedAttributes() []*MappedAttribute
- func (*TestSAMLIdPAttributeMappingResponse) ProtoMessage()
- func (x *TestSAMLIdPAttributeMappingResponse) ProtoReflect() protoreflect.Message
- func (x *TestSAMLIdPAttributeMappingResponse) Reset()
- func (x *TestSAMLIdPAttributeMappingResponse) String() string
- type UnimplementedSAMLIdPServiceServer
- func (UnimplementedSAMLIdPServiceServer) ProcessSAMLIdPRequest(context.Context, *ProcessSAMLIdPRequestRequest) (*ProcessSAMLIdPRequestResponse, error)
- func (UnimplementedSAMLIdPServiceServer) TestSAMLIdPAttributeMapping(context.Context, *TestSAMLIdPAttributeMappingRequest) (*TestSAMLIdPAttributeMappingResponse, error)
- type UnsafeSAMLIdPServiceServer
Constants ¶
const ( SAMLIdPService_ProcessSAMLIdPRequest_FullMethodName = "/teleport.samlidp.v1.SAMLIdPService/ProcessSAMLIdPRequest" SAMLIdPService_TestSAMLIdPAttributeMapping_FullMethodName = "/teleport.samlidp.v1.SAMLIdPService/TestSAMLIdPAttributeMapping" )
Variables ¶
var File_teleport_samlidp_v1_samlidp_proto protoreflect.FileDescriptor
var SAMLIdPService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "teleport.samlidp.v1.SAMLIdPService", HandlerType: (*SAMLIdPServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProcessSAMLIdPRequest", Handler: _SAMLIdPService_ProcessSAMLIdPRequest_Handler, }, { MethodName: "TestSAMLIdPAttributeMapping", Handler: _SAMLIdPService_TestSAMLIdPAttributeMapping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "teleport/samlidp/v1/samlidp.proto", }
SAMLIdPService_ServiceDesc is the grpc.ServiceDesc for SAMLIdPService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSAMLIdPServiceServer ¶
func RegisterSAMLIdPServiceServer(s grpc.ServiceRegistrar, srv SAMLIdPServiceServer)
Types ¶
type MappedAttribute ¶
type MappedAttribute struct { // username is username of user whose detail is used for attribute mapping. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // mapped_values is a result of attribute mapping where key is requested // attribute name and value is result of evaluated predicate expression. MappedValues map[string]*wrappers.StringValues `` /* 185-byte string literal not displayed */ // contains filtered or unexported fields }
MappedAttribute is a result of attribute mapping with username of a user whose username, role and traits are used for evaluation.
func (*MappedAttribute) Descriptor
deprecated
func (*MappedAttribute) Descriptor() ([]byte, []int)
Deprecated: Use MappedAttribute.ProtoReflect.Descriptor instead.
func (*MappedAttribute) GetMappedValues ¶
func (x *MappedAttribute) GetMappedValues() map[string]*wrappers.StringValues
func (*MappedAttribute) GetUsername ¶
func (x *MappedAttribute) GetUsername() string
func (*MappedAttribute) ProtoMessage ¶
func (*MappedAttribute) ProtoMessage()
func (*MappedAttribute) ProtoReflect ¶
func (x *MappedAttribute) ProtoReflect() protoreflect.Message
func (*MappedAttribute) Reset ¶
func (x *MappedAttribute) Reset()
func (*MappedAttribute) String ¶
func (x *MappedAttribute) String() string
type ProcessSAMLIdPRequestRequest ¶
type ProcessSAMLIdPRequestRequest struct { // destination is the destination of the response. Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // request_id is the request ID. RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // request_time is the time the request was made. RequestTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` // Metadata_url is the metadata URL of the SAML IdP. MetadataUrl string `protobuf:"bytes,4,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"` // signature_method is the signature method to use. SignatureMethod string `protobuf:"bytes,5,opt,name=signature_method,json=signatureMethod,proto3" json:"signature_method,omitempty"` // assertion is the SAML assertion to sign. Assertion []byte `protobuf:"bytes,6,opt,name=assertion,proto3" json:"assertion,omitempty"` // service_provider_sso_descriptor is the raw bytes of the service provider's SSO descriptor. ServiceProviderSsoDescriptor []byte `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
ProcessSAMLIdPRequestRequest is a request to create and sign the SAML IdP response to a SAML IdP auth request.
func (*ProcessSAMLIdPRequestRequest) Descriptor
deprecated
func (*ProcessSAMLIdPRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessSAMLIdPRequestRequest.ProtoReflect.Descriptor instead.
func (*ProcessSAMLIdPRequestRequest) GetAssertion ¶
func (x *ProcessSAMLIdPRequestRequest) GetAssertion() []byte
func (*ProcessSAMLIdPRequestRequest) GetDestination ¶
func (x *ProcessSAMLIdPRequestRequest) GetDestination() string
func (*ProcessSAMLIdPRequestRequest) GetMetadataUrl ¶
func (x *ProcessSAMLIdPRequestRequest) GetMetadataUrl() string
func (*ProcessSAMLIdPRequestRequest) GetRequestId ¶
func (x *ProcessSAMLIdPRequestRequest) GetRequestId() string
func (*ProcessSAMLIdPRequestRequest) GetRequestTime ¶
func (x *ProcessSAMLIdPRequestRequest) GetRequestTime() *timestamppb.Timestamp
func (*ProcessSAMLIdPRequestRequest) GetServiceProviderSsoDescriptor ¶
func (x *ProcessSAMLIdPRequestRequest) GetServiceProviderSsoDescriptor() []byte
func (*ProcessSAMLIdPRequestRequest) GetSignatureMethod ¶
func (x *ProcessSAMLIdPRequestRequest) GetSignatureMethod() string
func (*ProcessSAMLIdPRequestRequest) ProtoMessage ¶
func (*ProcessSAMLIdPRequestRequest) ProtoMessage()
func (*ProcessSAMLIdPRequestRequest) ProtoReflect ¶
func (x *ProcessSAMLIdPRequestRequest) ProtoReflect() protoreflect.Message
func (*ProcessSAMLIdPRequestRequest) Reset ¶
func (x *ProcessSAMLIdPRequestRequest) Reset()
func (*ProcessSAMLIdPRequestRequest) String ¶
func (x *ProcessSAMLIdPRequestRequest) String() string
type ProcessSAMLIdPRequestResponse ¶
type ProcessSAMLIdPRequestResponse struct { // response is the SAML response. Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
ProcessSAMLIdPRequestResponse is a response to processing the SAML IdP auth request.
func (*ProcessSAMLIdPRequestResponse) Descriptor
deprecated
func (*ProcessSAMLIdPRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProcessSAMLIdPRequestResponse.ProtoReflect.Descriptor instead.
func (*ProcessSAMLIdPRequestResponse) GetResponse ¶
func (x *ProcessSAMLIdPRequestResponse) GetResponse() []byte
func (*ProcessSAMLIdPRequestResponse) ProtoMessage ¶
func (*ProcessSAMLIdPRequestResponse) ProtoMessage()
func (*ProcessSAMLIdPRequestResponse) ProtoReflect ¶
func (x *ProcessSAMLIdPRequestResponse) ProtoReflect() protoreflect.Message
func (*ProcessSAMLIdPRequestResponse) Reset ¶
func (x *ProcessSAMLIdPRequestResponse) Reset()
func (*ProcessSAMLIdPRequestResponse) String ¶
func (x *ProcessSAMLIdPRequestResponse) String() string
type SAMLIdPServiceClient ¶
type SAMLIdPServiceClient interface { // ProcessSAMLIdPRequest processes the SAML auth request. ProcessSAMLIdPRequest(ctx context.Context, in *ProcessSAMLIdPRequestRequest, opts ...grpc.CallOption) (*ProcessSAMLIdPRequestResponse, error) // TestSAMLIdPAttributeMapping tests SAML attribute mapping configuration. TestSAMLIdPAttributeMapping(ctx context.Context, in *TestSAMLIdPAttributeMappingRequest, opts ...grpc.CallOption) (*TestSAMLIdPAttributeMappingResponse, error) }
SAMLIdPServiceClient is the client API for SAMLIdPService 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 NewSAMLIdPServiceClient ¶
func NewSAMLIdPServiceClient(cc grpc.ClientConnInterface) SAMLIdPServiceClient
type SAMLIdPServiceServer ¶
type SAMLIdPServiceServer interface { // ProcessSAMLIdPRequest processes the SAML auth request. ProcessSAMLIdPRequest(context.Context, *ProcessSAMLIdPRequestRequest) (*ProcessSAMLIdPRequestResponse, error) // TestSAMLIdPAttributeMapping tests SAML attribute mapping configuration. TestSAMLIdPAttributeMapping(context.Context, *TestSAMLIdPAttributeMappingRequest) (*TestSAMLIdPAttributeMappingResponse, error) // contains filtered or unexported methods }
SAMLIdPServiceServer is the server API for SAMLIdPService service. All implementations must embed UnimplementedSAMLIdPServiceServer for forward compatibility
type TestSAMLIdPAttributeMappingRequest ¶
type TestSAMLIdPAttributeMappingRequest struct { // service_provider is a SAML service provider with attribute mapping. ServiceProvider *types.SAMLIdPServiceProviderV1 `protobuf:"bytes,1,opt,name=service_provider,json=serviceProvider,proto3" json:"service_provider,omitempty"` // users is a list of users whose details will be used // to evaluate attribute mapping. Users []*types.UserV2 `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
TestSAMLIdPAttributeMappingRequest is a request to test attribute mapping.
func (*TestSAMLIdPAttributeMappingRequest) Descriptor
deprecated
func (*TestSAMLIdPAttributeMappingRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestSAMLIdPAttributeMappingRequest.ProtoReflect.Descriptor instead.
func (*TestSAMLIdPAttributeMappingRequest) GetServiceProvider ¶
func (x *TestSAMLIdPAttributeMappingRequest) GetServiceProvider() *types.SAMLIdPServiceProviderV1
func (*TestSAMLIdPAttributeMappingRequest) GetUsers ¶
func (x *TestSAMLIdPAttributeMappingRequest) GetUsers() []*types.UserV2
func (*TestSAMLIdPAttributeMappingRequest) ProtoMessage ¶
func (*TestSAMLIdPAttributeMappingRequest) ProtoMessage()
func (*TestSAMLIdPAttributeMappingRequest) ProtoReflect ¶
func (x *TestSAMLIdPAttributeMappingRequest) ProtoReflect() protoreflect.Message
func (*TestSAMLIdPAttributeMappingRequest) Reset ¶
func (x *TestSAMLIdPAttributeMappingRequest) Reset()
func (*TestSAMLIdPAttributeMappingRequest) String ¶
func (x *TestSAMLIdPAttributeMappingRequest) String() string
type TestSAMLIdPAttributeMappingResponse ¶
type TestSAMLIdPAttributeMappingResponse struct { // mapped_attributes is the result of attribute mapping evaluation. MappedAttributes []*MappedAttribute `protobuf:"bytes,1,rep,name=mapped_attributes,json=mappedAttributes,proto3" json:"mapped_attributes,omitempty"` // contains filtered or unexported fields }
TestSAMLIdPAttributeMappingResponse is a response to attribute mapping test request.
func (*TestSAMLIdPAttributeMappingResponse) Descriptor
deprecated
func (*TestSAMLIdPAttributeMappingResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestSAMLIdPAttributeMappingResponse.ProtoReflect.Descriptor instead.
func (*TestSAMLIdPAttributeMappingResponse) GetMappedAttributes ¶
func (x *TestSAMLIdPAttributeMappingResponse) GetMappedAttributes() []*MappedAttribute
func (*TestSAMLIdPAttributeMappingResponse) ProtoMessage ¶
func (*TestSAMLIdPAttributeMappingResponse) ProtoMessage()
func (*TestSAMLIdPAttributeMappingResponse) ProtoReflect ¶
func (x *TestSAMLIdPAttributeMappingResponse) ProtoReflect() protoreflect.Message
func (*TestSAMLIdPAttributeMappingResponse) Reset ¶
func (x *TestSAMLIdPAttributeMappingResponse) Reset()
func (*TestSAMLIdPAttributeMappingResponse) String ¶
func (x *TestSAMLIdPAttributeMappingResponse) String() string
type UnimplementedSAMLIdPServiceServer ¶
type UnimplementedSAMLIdPServiceServer struct { }
UnimplementedSAMLIdPServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSAMLIdPServiceServer) ProcessSAMLIdPRequest ¶
func (UnimplementedSAMLIdPServiceServer) ProcessSAMLIdPRequest(context.Context, *ProcessSAMLIdPRequestRequest) (*ProcessSAMLIdPRequestResponse, error)
func (UnimplementedSAMLIdPServiceServer) TestSAMLIdPAttributeMapping ¶
func (UnimplementedSAMLIdPServiceServer) TestSAMLIdPAttributeMapping(context.Context, *TestSAMLIdPAttributeMappingRequest) (*TestSAMLIdPAttributeMappingResponse, error)
type UnsafeSAMLIdPServiceServer ¶
type UnsafeSAMLIdPServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSAMLIdPServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SAMLIdPServiceServer will result in compilation errors.