-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Category field to Entity struct Environment entities not included in access decision resolves #1220 documentation: opentdf/docs#37
- Loading branch information
1 parent
9921962
commit cfab3ad
Showing
10 changed files
with
632 additions
and
253 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 14 additions & 1 deletion
15
docs/openapi/entityresolution/entity_resolution.swagger.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,11 +35,13 @@ func authorizationExamples() error { | |
|
||
// model two groups of entities; user bob and user alice | ||
entityChains := []*authorization.EntityChain{{ | ||
Id: "ec1", // ec1 is an arbitrary tracking id to match results to request | ||
Entities: []*authorization.Entity{{EntityType: &authorization.Entity_EmailAddress{EmailAddress: "[email protected]"}}}, | ||
Id: "ec1", // ec1 is an arbitrary tracking id to match results to request | ||
Entities: []*authorization.Entity{{EntityType: &authorization.Entity_EmailAddress{EmailAddress: "[email protected]"}, | ||
Category: authorization.Entity_CATEGORY_SUBJECT}}, | ||
}, { | ||
Id: "ec2", // ec2 is an arbitrary tracking id to match results to request | ||
Entities: []*authorization.Entity{{EntityType: &authorization.Entity_UserName{UserName: "[email protected]"}}}, | ||
Id: "ec2", // ec2 is an arbitrary tracking id to match results to request | ||
Entities: []*authorization.Entity{{EntityType: &authorization.Entity_UserName{UserName: "[email protected]"}, | ||
Category: authorization.Entity_CATEGORY_SUBJECT}}, | ||
}} | ||
|
||
// TODO Get attribute value ids | ||
|
Oops, something went wrong.