Documentation ¶
Overview ¶
Package authorization is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthorizationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthorizationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthorizationServiceClient) error
- func RegisterAuthorizationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthorizationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthorizationServiceServer) error
- func RegisterAuthorizationServiceServer(s grpc.ServiceRegistrar, srv AuthorizationServiceServer)
- type AuthorizationServiceClient
- type AuthorizationServiceServer
- type DecisionRequest
- func (*DecisionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DecisionRequest) GetActions() []*policy.Action
- func (x *DecisionRequest) GetEntityChains() []*EntityChain
- func (x *DecisionRequest) GetResourceAttributes() []*ResourceAttribute
- func (*DecisionRequest) ProtoMessage()
- func (x *DecisionRequest) ProtoReflect() protoreflect.Message
- func (x *DecisionRequest) Reset()
- func (x *DecisionRequest) String() string
- type DecisionResponse
- func (*DecisionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DecisionResponse) GetAction() *policy.Action
- func (x *DecisionResponse) GetDecision() DecisionResponse_Decision
- func (x *DecisionResponse) GetEntityChainId() string
- func (x *DecisionResponse) GetObligations() []string
- func (x *DecisionResponse) GetResourceAttributesId() string
- func (*DecisionResponse) ProtoMessage()
- func (x *DecisionResponse) ProtoReflect() protoreflect.Message
- func (x *DecisionResponse) Reset()
- func (x *DecisionResponse) String() string
- type DecisionResponse_Decision
- func (DecisionResponse_Decision) Descriptor() protoreflect.EnumDescriptor
- func (x DecisionResponse_Decision) Enum() *DecisionResponse_Decision
- func (DecisionResponse_Decision) EnumDescriptor() ([]byte, []int)deprecated
- func (x DecisionResponse_Decision) Number() protoreflect.EnumNumber
- func (x DecisionResponse_Decision) String() string
- func (DecisionResponse_Decision) Type() protoreflect.EnumType
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)deprecated
- func (x *Entity) GetClaims() *anypb.Any
- func (x *Entity) GetClientId() string
- func (x *Entity) GetCustom() *EntityCustom
- func (x *Entity) GetEmailAddress() string
- func (m *Entity) GetEntityType() isEntity_EntityType
- func (x *Entity) GetId() string
- func (x *Entity) GetJwt() string
- func (x *Entity) GetRemoteClaimsUrl() string
- func (x *Entity) GetUserName() string
- func (*Entity) ProtoMessage()
- func (x *Entity) ProtoReflect() protoreflect.Message
- func (x *Entity) Reset()
- func (x *Entity) String() string
- type EntityChain
- func (*EntityChain) Descriptor() ([]byte, []int)deprecated
- func (x *EntityChain) GetEntities() []*Entity
- func (x *EntityChain) GetId() string
- func (*EntityChain) ProtoMessage()
- func (x *EntityChain) ProtoReflect() protoreflect.Message
- func (x *EntityChain) Reset()
- func (x *EntityChain) String() string
- type EntityCustom
- type EntityEntitlements
- func (*EntityEntitlements) Descriptor() ([]byte, []int)deprecated
- func (x *EntityEntitlements) GetAttributeValueFqns() []string
- func (x *EntityEntitlements) GetEntityId() string
- func (*EntityEntitlements) ProtoMessage()
- func (x *EntityEntitlements) ProtoReflect() protoreflect.Message
- func (x *EntityEntitlements) Reset()
- func (x *EntityEntitlements) String() string
- type EntityNotFoundError
- func (*EntityNotFoundError) Descriptor() ([]byte, []int)deprecated
- func (x *EntityNotFoundError) GetCode() int32
- func (x *EntityNotFoundError) GetDetails() []*anypb.Any
- func (x *EntityNotFoundError) GetEntity() string
- func (x *EntityNotFoundError) GetMessage() string
- func (*EntityNotFoundError) ProtoMessage()
- func (x *EntityNotFoundError) ProtoReflect() protoreflect.Message
- func (x *EntityNotFoundError) Reset()
- func (x *EntityNotFoundError) String() string
- type Entity_Claims
- type Entity_ClientId
- type Entity_Custom
- type Entity_EmailAddress
- type Entity_Jwt
- type Entity_RemoteClaimsUrl
- type Entity_UserName
- type GetDecisionsRequest
- func (*GetDecisionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDecisionsRequest) GetDecisionRequests() []*DecisionRequest
- func (*GetDecisionsRequest) ProtoMessage()
- func (x *GetDecisionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDecisionsRequest) Reset()
- func (x *GetDecisionsRequest) String() string
- type GetDecisionsResponse
- func (*GetDecisionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDecisionsResponse) GetDecisionResponses() []*DecisionResponse
- func (*GetDecisionsResponse) ProtoMessage()
- func (x *GetDecisionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDecisionsResponse) Reset()
- func (x *GetDecisionsResponse) String() string
- type GetEntitlementsRequest
- func (*GetEntitlementsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEntitlementsRequest) GetEntities() []*Entity
- func (x *GetEntitlementsRequest) GetScope() *ResourceAttribute
- func (*GetEntitlementsRequest) ProtoMessage()
- func (x *GetEntitlementsRequest) ProtoReflect() protoreflect.Message
- func (x *GetEntitlementsRequest) Reset()
- func (x *GetEntitlementsRequest) String() string
- type GetEntitlementsResponse
- func (*GetEntitlementsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEntitlementsResponse) GetEntitlements() []*EntityEntitlements
- func (*GetEntitlementsResponse) ProtoMessage()
- func (x *GetEntitlementsResponse) ProtoReflect() protoreflect.Message
- func (x *GetEntitlementsResponse) Reset()
- func (x *GetEntitlementsResponse) String() string
- type IdpConfig
- type IdpEntityRepresentation
- func (*IdpEntityRepresentation) Descriptor() ([]byte, []int)deprecated
- func (x *IdpEntityRepresentation) GetAdditionalProps() []*structpb.Struct
- func (x *IdpEntityRepresentation) GetOriginalId() string
- func (*IdpEntityRepresentation) ProtoMessage()
- func (x *IdpEntityRepresentation) ProtoReflect() protoreflect.Message
- func (x *IdpEntityRepresentation) Reset()
- func (x *IdpEntityRepresentation) String() string
- type IdpPluginRequest
- type IdpPluginResponse
- func (*IdpPluginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IdpPluginResponse) GetEntityRepresentations() []*IdpEntityRepresentation
- func (*IdpPluginResponse) ProtoMessage()
- func (x *IdpPluginResponse) ProtoReflect() protoreflect.Message
- func (x *IdpPluginResponse) Reset()
- func (x *IdpPluginResponse) String() string
- type ResourceAttribute
- func (*ResourceAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceAttribute) GetAttributeValueFqns() []string
- func (*ResourceAttribute) ProtoMessage()
- func (x *ResourceAttribute) ProtoReflect() protoreflect.Message
- func (x *ResourceAttribute) Reset()
- func (x *ResourceAttribute) String() string
- type UnimplementedAuthorizationServiceServer
- type UnsafeAuthorizationServiceServer
Constants ¶
const ( AuthorizationService_GetDecisions_FullMethodName = "/authorization.AuthorizationService/GetDecisions" AuthorizationService_GetEntitlements_FullMethodName = "/authorization.AuthorizationService/GetEntitlements" )
Variables ¶
var ( DecisionResponse_Decision_name = map[int32]string{ 0: "DECISION_UNSPECIFIED", 1: "DECISION_DENY", 2: "DECISION_PERMIT", } DecisionResponse_Decision_value = map[string]int32{ "DECISION_UNSPECIFIED": 0, "DECISION_DENY": 1, "DECISION_PERMIT": 2, } )
Enum value maps for DecisionResponse_Decision.
var AuthorizationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authorization.AuthorizationService", HandlerType: (*AuthorizationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDecisions", Handler: _AuthorizationService_GetDecisions_Handler, }, { MethodName: "GetEntitlements", Handler: _AuthorizationService_GetEntitlements_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authorization/authorization.proto", }
AuthorizationService_ServiceDesc is the grpc.ServiceDesc for AuthorizationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthorizationServiceHandler ¶
func RegisterAuthorizationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthorizationServiceHandler registers the http handlers for service AuthorizationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthorizationServiceHandlerClient ¶
func RegisterAuthorizationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthorizationServiceClient) error
RegisterAuthorizationServiceHandlerClient registers the http handlers for service AuthorizationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthorizationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthorizationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthorizationServiceClient" to call the correct interceptors.
func RegisterAuthorizationServiceHandlerFromEndpoint ¶
func RegisterAuthorizationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthorizationServiceHandlerFromEndpoint is same as RegisterAuthorizationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthorizationServiceHandlerServer ¶
func RegisterAuthorizationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthorizationServiceServer) error
RegisterAuthorizationServiceHandlerServer registers the http handlers for service AuthorizationService to "mux". UnaryRPC :call AuthorizationServiceServer 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 RegisterAuthorizationServiceHandlerFromEndpoint instead.
func RegisterAuthorizationServiceServer ¶
func RegisterAuthorizationServiceServer(s grpc.ServiceRegistrar, srv AuthorizationServiceServer)
Types ¶
type AuthorizationServiceClient ¶
type AuthorizationServiceClient interface { GetDecisions(ctx context.Context, in *GetDecisionsRequest, opts ...grpc.CallOption) (*GetDecisionsResponse, error) GetEntitlements(ctx context.Context, in *GetEntitlementsRequest, opts ...grpc.CallOption) (*GetEntitlementsResponse, error) }
AuthorizationServiceClient is the client API for AuthorizationService 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 NewAuthorizationServiceClient ¶
func NewAuthorizationServiceClient(cc grpc.ClientConnInterface) AuthorizationServiceClient
type AuthorizationServiceServer ¶
type AuthorizationServiceServer interface { GetDecisions(context.Context, *GetDecisionsRequest) (*GetDecisionsResponse, error) GetEntitlements(context.Context, *GetEntitlementsRequest) (*GetEntitlementsResponse, error) // contains filtered or unexported methods }
AuthorizationServiceServer is the server API for AuthorizationService service. All implementations must embed UnimplementedAuthorizationServiceServer for forward compatibility
type DecisionRequest ¶
type DecisionRequest struct { Actions []*policy.Action `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` EntityChains []*EntityChain `protobuf:"bytes,2,rep,name=entity_chains,json=entityChains,proto3" json:"entity_chains,omitempty"` ResourceAttributes []*ResourceAttribute `protobuf:"bytes,3,rep,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"` // contains filtered or unexported fields }
Example Request Get Decisions to answer the question - Do Bob (represented by entity chain ec1) and Alice (represented by entity chain ec2) have TRANSMIT authorization for 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
{ "actions": [ { "standard": "STANDARD_ACTION_TRANSMIT" } ], "entityChains": [ { "id": "ec1", "entities": [ { "emailAddress": "bob@example.org" } ] }, { "id": "ec2", "entities": [ { "userName": "alice@example.org" } ] } ], "resourceAttributes": [ { "attributeFqns": [ "https://www.example.org/attr/foo/value/value1" ] }, { "attributeFqns": [ "https://example.net/attr/attr1/value/value1", "https://example.net/attr/attr1/value/value2" ] } ] }
func (*DecisionRequest) Descriptor
deprecated
func (*DecisionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecisionRequest.ProtoReflect.Descriptor instead.
func (*DecisionRequest) GetActions ¶
func (x *DecisionRequest) GetActions() []*policy.Action
func (*DecisionRequest) GetEntityChains ¶
func (x *DecisionRequest) GetEntityChains() []*EntityChain
func (*DecisionRequest) GetResourceAttributes ¶
func (x *DecisionRequest) GetResourceAttributes() []*ResourceAttribute
func (*DecisionRequest) ProtoMessage ¶
func (*DecisionRequest) ProtoMessage()
func (*DecisionRequest) ProtoReflect ¶
func (x *DecisionRequest) ProtoReflect() protoreflect.Message
func (*DecisionRequest) Reset ¶
func (x *DecisionRequest) Reset()
func (*DecisionRequest) String ¶
func (x *DecisionRequest) String() string
type DecisionResponse ¶
type DecisionResponse struct { EntityChainId string `protobuf:"bytes,1,opt,name=entity_chain_id,json=entityChainId,proto3" json:"entity_chain_id,omitempty"` // ephemeral entity chain id from the request ResourceAttributesId string `protobuf:"bytes,2,opt,name=resource_attributes_id,json=resourceAttributesId,proto3" json:"resource_attributes_id,omitempty"` // ephemeral resource attributes id from the request Action *policy.Action `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` // Action of the decision response Decision DecisionResponse_Decision `protobuf:"varint,4,opt,name=decision,proto3,enum=authorization.DecisionResponse_Decision" json:"decision,omitempty"` // The decision response Obligations []string `protobuf:"bytes,5,rep,name=obligations,proto3" json:"obligations,omitempty"` //optional list of obligations represented in URI format // contains filtered or unexported fields }
Example response for a Decision Request - Do Bob (represented by entity chain ec1) and Alice (represented by entity chain ec2) have TRANSMIT authorization for 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
Results: - bob has permitted authorization to transmit for a resource defined by attr-set-1 attributes and has a watermark obligation - bob has denied authorization to transmit a for a resource defined by attr-set-2 attributes - alice has permitted authorization to transmit for a resource defined by attr-set-1 attributes - alice has denied authorization to transmit a for a resource defined by attr-set-2 attributes
{ "entityChainId": "ec1", "resourceAttributesId": "attr-set-1", "decision": "DECISION_PERMIT", "obligations": [ "http://www.example.org/obligation/watermark" ] }, { "entityChainId": "ec1", "resourceAttributesId": "attr-set-2", "decision": "DECISION_PERMIT" }, { "entityChainId": "ec2", "resourceAttributesId": "attr-set-1", "decision": "DECISION_PERMIT" }, { "entityChainId": "ec2", "resourceAttributesId": "attr-set-2", "decision": "DECISION_DENY" }
func (*DecisionResponse) Descriptor
deprecated
func (*DecisionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DecisionResponse.ProtoReflect.Descriptor instead.
func (*DecisionResponse) GetAction ¶
func (x *DecisionResponse) GetAction() *policy.Action
func (*DecisionResponse) GetDecision ¶
func (x *DecisionResponse) GetDecision() DecisionResponse_Decision
func (*DecisionResponse) GetEntityChainId ¶
func (x *DecisionResponse) GetEntityChainId() string
func (*DecisionResponse) GetObligations ¶
func (x *DecisionResponse) GetObligations() []string
func (*DecisionResponse) GetResourceAttributesId ¶
func (x *DecisionResponse) GetResourceAttributesId() string
func (*DecisionResponse) ProtoMessage ¶
func (*DecisionResponse) ProtoMessage()
func (*DecisionResponse) ProtoReflect ¶
func (x *DecisionResponse) ProtoReflect() protoreflect.Message
func (*DecisionResponse) Reset ¶
func (x *DecisionResponse) Reset()
func (*DecisionResponse) String ¶
func (x *DecisionResponse) String() string
type DecisionResponse_Decision ¶
type DecisionResponse_Decision int32
const ( DecisionResponse_DECISION_UNSPECIFIED DecisionResponse_Decision = 0 DecisionResponse_DECISION_DENY DecisionResponse_Decision = 1 DecisionResponse_DECISION_PERMIT DecisionResponse_Decision = 2 )
func (DecisionResponse_Decision) Descriptor ¶
func (DecisionResponse_Decision) Descriptor() protoreflect.EnumDescriptor
func (DecisionResponse_Decision) Enum ¶
func (x DecisionResponse_Decision) Enum() *DecisionResponse_Decision
func (DecisionResponse_Decision) EnumDescriptor
deprecated
func (DecisionResponse_Decision) EnumDescriptor() ([]byte, []int)
Deprecated: Use DecisionResponse_Decision.Descriptor instead.
func (DecisionResponse_Decision) Number ¶
func (x DecisionResponse_Decision) Number() protoreflect.EnumNumber
func (DecisionResponse_Decision) String ¶
func (x DecisionResponse_Decision) String() string
func (DecisionResponse_Decision) Type ¶
func (DecisionResponse_Decision) Type() protoreflect.EnumType
type Entity ¶
type Entity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ephemeral id for tracking between request and response // Standard entity types supported by the platform // // Types that are assignable to EntityType: // // *Entity_EmailAddress // *Entity_UserName // *Entity_RemoteClaimsUrl // *Entity_Jwt // *Entity_Claims // *Entity_Custom // *Entity_ClientId EntityType isEntity_EntityType `protobuf_oneof:"entity_type"` // contains filtered or unexported fields }
PE (Person Entity) or NPE (Non-Person Entity)
func (*Entity) Descriptor
deprecated
func (*Entity) GetClientId ¶
func (*Entity) GetCustom ¶
func (x *Entity) GetCustom() *EntityCustom
func (*Entity) GetEmailAddress ¶
func (*Entity) GetEntityType ¶
func (m *Entity) GetEntityType() isEntity_EntityType
func (*Entity) GetRemoteClaimsUrl ¶
func (*Entity) GetUserName ¶
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) ProtoReflect ¶
func (x *Entity) ProtoReflect() protoreflect.Message
type EntityChain ¶
type EntityChain struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ephemeral id for tracking between request and response Entities []*Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` // contains filtered or unexported fields }
A set of related PE and NPE
func (*EntityChain) Descriptor
deprecated
func (*EntityChain) Descriptor() ([]byte, []int)
Deprecated: Use EntityChain.ProtoReflect.Descriptor instead.
func (*EntityChain) GetEntities ¶
func (x *EntityChain) GetEntities() []*Entity
func (*EntityChain) GetId ¶
func (x *EntityChain) GetId() string
func (*EntityChain) ProtoMessage ¶
func (*EntityChain) ProtoMessage()
func (*EntityChain) ProtoReflect ¶
func (x *EntityChain) ProtoReflect() protoreflect.Message
func (*EntityChain) Reset ¶
func (x *EntityChain) Reset()
func (*EntityChain) String ¶
func (x *EntityChain) String() string
type EntityCustom ¶
type EntityCustom struct { Extension *anypb.Any `protobuf:"bytes,1,opt,name=extension,proto3" json:"extension,omitempty"` // contains filtered or unexported fields }
Entity type for custom entities beyond the standard types
func (*EntityCustom) Descriptor
deprecated
func (*EntityCustom) Descriptor() ([]byte, []int)
Deprecated: Use EntityCustom.ProtoReflect.Descriptor instead.
func (*EntityCustom) GetExtension ¶
func (x *EntityCustom) GetExtension() *anypb.Any
func (*EntityCustom) ProtoMessage ¶
func (*EntityCustom) ProtoMessage()
func (*EntityCustom) ProtoReflect ¶
func (x *EntityCustom) ProtoReflect() protoreflect.Message
func (*EntityCustom) Reset ¶
func (x *EntityCustom) Reset()
func (*EntityCustom) String ¶
func (x *EntityCustom) String() string
type EntityEntitlements ¶
type EntityEntitlements struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` AttributeValueFqns []string `protobuf:"bytes,2,rep,name=attribute_value_fqns,json=attributeValueFqns,proto3" json:"attribute_value_fqns,omitempty"` // contains filtered or unexported fields }
func (*EntityEntitlements) Descriptor
deprecated
func (*EntityEntitlements) Descriptor() ([]byte, []int)
Deprecated: Use EntityEntitlements.ProtoReflect.Descriptor instead.
func (*EntityEntitlements) GetAttributeValueFqns ¶
func (x *EntityEntitlements) GetAttributeValueFqns() []string
func (*EntityEntitlements) GetEntityId ¶
func (x *EntityEntitlements) GetEntityId() string
func (*EntityEntitlements) ProtoMessage ¶
func (*EntityEntitlements) ProtoMessage()
func (*EntityEntitlements) ProtoReflect ¶
func (x *EntityEntitlements) ProtoReflect() protoreflect.Message
func (*EntityEntitlements) Reset ¶
func (x *EntityEntitlements) Reset()
func (*EntityEntitlements) String ¶
func (x *EntityEntitlements) String() string
type EntityNotFoundError ¶
type EntityNotFoundError struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` Entity string `protobuf:"bytes,4,opt,name=entity,proto3" json:"entity,omitempty"` // contains filtered or unexported fields }
func (*EntityNotFoundError) Descriptor
deprecated
func (*EntityNotFoundError) Descriptor() ([]byte, []int)
Deprecated: Use EntityNotFoundError.ProtoReflect.Descriptor instead.
func (*EntityNotFoundError) GetCode ¶
func (x *EntityNotFoundError) GetCode() int32
func (*EntityNotFoundError) GetDetails ¶
func (x *EntityNotFoundError) GetDetails() []*anypb.Any
func (*EntityNotFoundError) GetEntity ¶
func (x *EntityNotFoundError) GetEntity() string
func (*EntityNotFoundError) GetMessage ¶
func (x *EntityNotFoundError) GetMessage() string
func (*EntityNotFoundError) ProtoMessage ¶
func (*EntityNotFoundError) ProtoMessage()
func (*EntityNotFoundError) ProtoReflect ¶
func (x *EntityNotFoundError) ProtoReflect() protoreflect.Message
func (*EntityNotFoundError) Reset ¶
func (x *EntityNotFoundError) Reset()
func (*EntityNotFoundError) String ¶
func (x *EntityNotFoundError) String() string
type Entity_Claims ¶
type Entity_ClientId ¶
type Entity_ClientId struct {
ClientId string `protobuf:"bytes,8,opt,name=client_id,json=clientId,proto3,oneof"`
}
type Entity_Custom ¶
type Entity_Custom struct {
Custom *EntityCustom `protobuf:"bytes,7,opt,name=custom,proto3,oneof"`
}
type Entity_EmailAddress ¶
type Entity_EmailAddress struct {
EmailAddress string `protobuf:"bytes,2,opt,name=email_address,json=emailAddress,proto3,oneof"`
}
type Entity_Jwt ¶
type Entity_Jwt struct {
Jwt string `protobuf:"bytes,5,opt,name=jwt,proto3,oneof"`
}
type Entity_RemoteClaimsUrl ¶
type Entity_RemoteClaimsUrl struct {
RemoteClaimsUrl string `protobuf:"bytes,4,opt,name=remote_claims_url,json=remoteClaimsUrl,proto3,oneof"`
}
type Entity_UserName ¶
type Entity_UserName struct {
UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3,oneof"`
}
type GetDecisionsRequest ¶
type GetDecisionsRequest struct { DecisionRequests []*DecisionRequest `protobuf:"bytes,1,rep,name=decision_requests,json=decisionRequests,proto3" json:"decision_requests,omitempty"` // contains filtered or unexported fields }
func (*GetDecisionsRequest) Descriptor
deprecated
func (*GetDecisionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDecisionsRequest.ProtoReflect.Descriptor instead.
func (*GetDecisionsRequest) GetDecisionRequests ¶
func (x *GetDecisionsRequest) GetDecisionRequests() []*DecisionRequest
func (*GetDecisionsRequest) ProtoMessage ¶
func (*GetDecisionsRequest) ProtoMessage()
func (*GetDecisionsRequest) ProtoReflect ¶
func (x *GetDecisionsRequest) ProtoReflect() protoreflect.Message
func (*GetDecisionsRequest) Reset ¶
func (x *GetDecisionsRequest) Reset()
func (*GetDecisionsRequest) String ¶
func (x *GetDecisionsRequest) String() string
type GetDecisionsResponse ¶
type GetDecisionsResponse struct { DecisionResponses []*DecisionResponse `protobuf:"bytes,1,rep,name=decision_responses,json=decisionResponses,proto3" json:"decision_responses,omitempty"` // contains filtered or unexported fields }
func (*GetDecisionsResponse) Descriptor
deprecated
func (*GetDecisionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDecisionsResponse.ProtoReflect.Descriptor instead.
func (*GetDecisionsResponse) GetDecisionResponses ¶
func (x *GetDecisionsResponse) GetDecisionResponses() []*DecisionResponse
func (*GetDecisionsResponse) ProtoMessage ¶
func (*GetDecisionsResponse) ProtoMessage()
func (*GetDecisionsResponse) ProtoReflect ¶
func (x *GetDecisionsResponse) ProtoReflect() protoreflect.Message
func (*GetDecisionsResponse) Reset ¶
func (x *GetDecisionsResponse) Reset()
func (*GetDecisionsResponse) String ¶
func (x *GetDecisionsResponse) String() string
type GetEntitlementsRequest ¶
type GetEntitlementsRequest struct { Entities []*Entity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` // list of requested entities Scope *ResourceAttribute `protobuf:"bytes,2,opt,name=scope,proto3,oneof" json:"scope,omitempty"` //optional attribute fqn as a scope // contains filtered or unexported fields }
Request to get entitlements for one or more entities for an optional attribute scope
Example: Get entitlements for bob and alice (both represented using an email address
{ "entities": [ { "id": "e1", "emailAddress": "bob@example.org" }, { "id": "e2", "emailAddress": "alice@example.org" } ] }
func (*GetEntitlementsRequest) Descriptor
deprecated
func (*GetEntitlementsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEntitlementsRequest.ProtoReflect.Descriptor instead.
func (*GetEntitlementsRequest) GetEntities ¶
func (x *GetEntitlementsRequest) GetEntities() []*Entity
func (*GetEntitlementsRequest) GetScope ¶
func (x *GetEntitlementsRequest) GetScope() *ResourceAttribute
func (*GetEntitlementsRequest) ProtoMessage ¶
func (*GetEntitlementsRequest) ProtoMessage()
func (*GetEntitlementsRequest) ProtoReflect ¶
func (x *GetEntitlementsRequest) ProtoReflect() protoreflect.Message
func (*GetEntitlementsRequest) Reset ¶
func (x *GetEntitlementsRequest) Reset()
func (*GetEntitlementsRequest) String ¶
func (x *GetEntitlementsRequest) String() string
type GetEntitlementsResponse ¶
type GetEntitlementsResponse struct { Entitlements []*EntityEntitlements `protobuf:"bytes,1,rep,name=entitlements,proto3" json:"entitlements,omitempty"` // contains filtered or unexported fields }
Example Response for a request of : Get entitlements for bob and alice (both represented using an email address
{ "entitlements": [ { "entityId": "e1", "attributeValueReferences": [ { "attributeFqn": "http://www.example.org/attr/foo/value/bar" } ] }, { "entityId": "e2", "attributeValueReferences": [ { "attributeFqn": "http://www.example.org/attr/color/value/red" } ] } ] }
func (*GetEntitlementsResponse) Descriptor
deprecated
func (*GetEntitlementsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetEntitlementsResponse.ProtoReflect.Descriptor instead.
func (*GetEntitlementsResponse) GetEntitlements ¶
func (x *GetEntitlementsResponse) GetEntitlements() []*EntityEntitlements
func (*GetEntitlementsResponse) ProtoMessage ¶
func (*GetEntitlementsResponse) ProtoMessage()
func (*GetEntitlementsResponse) ProtoReflect ¶
func (x *GetEntitlementsResponse) ProtoReflect() protoreflect.Message
func (*GetEntitlementsResponse) Reset ¶
func (x *GetEntitlementsResponse) Reset()
func (*GetEntitlementsResponse) String ¶
func (x *GetEntitlementsResponse) String() string
type IdpConfig ¶
type IdpConfig struct { Config *structpb.Struct `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*IdpConfig) Descriptor
deprecated
func (*IdpConfig) ProtoMessage ¶
func (*IdpConfig) ProtoMessage()
func (*IdpConfig) ProtoReflect ¶
func (x *IdpConfig) ProtoReflect() protoreflect.Message
type IdpEntityRepresentation ¶
type IdpEntityRepresentation struct { AdditionalProps []*structpb.Struct `protobuf:"bytes,1,rep,name=additional_props,json=additionalProps,proto3" json:"additional_props,omitempty"` OriginalId string `protobuf:"bytes,2,opt,name=original_id,json=originalId,proto3" json:"original_id,omitempty"` // ephemeral entity id from the request // contains filtered or unexported fields }
func (*IdpEntityRepresentation) Descriptor
deprecated
func (*IdpEntityRepresentation) Descriptor() ([]byte, []int)
Deprecated: Use IdpEntityRepresentation.ProtoReflect.Descriptor instead.
func (*IdpEntityRepresentation) GetAdditionalProps ¶
func (x *IdpEntityRepresentation) GetAdditionalProps() []*structpb.Struct
func (*IdpEntityRepresentation) GetOriginalId ¶
func (x *IdpEntityRepresentation) GetOriginalId() string
func (*IdpEntityRepresentation) ProtoMessage ¶
func (*IdpEntityRepresentation) ProtoMessage()
func (*IdpEntityRepresentation) ProtoReflect ¶
func (x *IdpEntityRepresentation) ProtoReflect() protoreflect.Message
func (*IdpEntityRepresentation) Reset ¶
func (x *IdpEntityRepresentation) Reset()
func (*IdpEntityRepresentation) String ¶
func (x *IdpEntityRepresentation) String() string
type IdpPluginRequest ¶
type IdpPluginRequest struct { Entities []*Entity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` // contains filtered or unexported fields }
Example: Get idp attributes for bob and alice (both represented using an email address { "entities": [ { "id": "e1", "emailAddress": "bob@example.org" }, { "id": "e2", "emailAddress": "alice@example.org" } ] }
func (*IdpPluginRequest) Descriptor
deprecated
func (*IdpPluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use IdpPluginRequest.ProtoReflect.Descriptor instead.
func (*IdpPluginRequest) GetEntities ¶
func (x *IdpPluginRequest) GetEntities() []*Entity
func (*IdpPluginRequest) ProtoMessage ¶
func (*IdpPluginRequest) ProtoMessage()
func (*IdpPluginRequest) ProtoReflect ¶
func (x *IdpPluginRequest) ProtoReflect() protoreflect.Message
func (*IdpPluginRequest) Reset ¶
func (x *IdpPluginRequest) Reset()
func (*IdpPluginRequest) String ¶
func (x *IdpPluginRequest) String() string
type IdpPluginResponse ¶
type IdpPluginResponse struct { EntityRepresentations []*IdpEntityRepresentation `protobuf:"bytes,1,rep,name=entity_representations,json=entityRepresentations,proto3" json:"entity_representations,omitempty"` // contains filtered or unexported fields }
Example: Get idp attributes for bob and alice { "entity_representations": [ { "idp_entity_id": "e1", "additional_props": {"someAttr1":"someValue1"} }, { "idp_entity_id": "e2", "additional_props": {"someAttr2":"someValue2"} } ] }
func (*IdpPluginResponse) Descriptor
deprecated
func (*IdpPluginResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdpPluginResponse.ProtoReflect.Descriptor instead.
func (*IdpPluginResponse) GetEntityRepresentations ¶
func (x *IdpPluginResponse) GetEntityRepresentations() []*IdpEntityRepresentation
func (*IdpPluginResponse) ProtoMessage ¶
func (*IdpPluginResponse) ProtoMessage()
func (*IdpPluginResponse) ProtoReflect ¶
func (x *IdpPluginResponse) ProtoReflect() protoreflect.Message
func (*IdpPluginResponse) Reset ¶
func (x *IdpPluginResponse) Reset()
func (*IdpPluginResponse) String ¶
func (x *IdpPluginResponse) String() string
type ResourceAttribute ¶
type ResourceAttribute struct { AttributeValueFqns []string `protobuf:"bytes,2,rep,name=attribute_value_fqns,json=attributeValueFqns,proto3" json:"attribute_value_fqns,omitempty"` // contains filtered or unexported fields }
A logical bucket of attributes belonging to a "Resource"
func (*ResourceAttribute) Descriptor
deprecated
func (*ResourceAttribute) Descriptor() ([]byte, []int)
Deprecated: Use ResourceAttribute.ProtoReflect.Descriptor instead.
func (*ResourceAttribute) GetAttributeValueFqns ¶
func (x *ResourceAttribute) GetAttributeValueFqns() []string
func (*ResourceAttribute) ProtoMessage ¶
func (*ResourceAttribute) ProtoMessage()
func (*ResourceAttribute) ProtoReflect ¶
func (x *ResourceAttribute) ProtoReflect() protoreflect.Message
func (*ResourceAttribute) Reset ¶
func (x *ResourceAttribute) Reset()
func (*ResourceAttribute) String ¶
func (x *ResourceAttribute) String() string
type UnimplementedAuthorizationServiceServer ¶
type UnimplementedAuthorizationServiceServer struct { }
UnimplementedAuthorizationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthorizationServiceServer) GetDecisions ¶
func (UnimplementedAuthorizationServiceServer) GetDecisions(context.Context, *GetDecisionsRequest) (*GetDecisionsResponse, error)
func (UnimplementedAuthorizationServiceServer) GetEntitlements ¶
func (UnimplementedAuthorizationServiceServer) GetEntitlements(context.Context, *GetEntitlementsRequest) (*GetEntitlementsResponse, error)
type UnsafeAuthorizationServiceServer ¶
type UnsafeAuthorizationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthorizationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizationServiceServer will result in compilation errors.