Skip to content

Commit

Permalink
add required_attributes columns to capabilities and grants tables - f…
Browse files Browse the repository at this point in the history
…or handling arbitrary requirements
  • Loading branch information
leondutoit committed Jan 13, 2020
1 parent 984181d commit 244a1c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db_capabilities.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ create table if not exists capabilities_http(
capability_name text unique not null primary key,
capability_default_claims jsonb,
capability_required_groups text[],
capability_required_attributes jsonb,
capability_group_match_method text check (capability_group_match_method in ('exact', 'wildcard')),
capability_lifetime int not null check (capability_lifetime > 0), -- minutes
capability_description text not null,
Expand Down Expand Up @@ -157,6 +158,7 @@ create table if not exists capabilities_http_grants(
capability_grant_rank int check (capability_grant_rank > 0),
capability_grant_uri_pattern text not null, -- string or regex referring to a set of resources
capability_grant_required_groups text[],
capability_grant_required_attributes jsonb,
capability_grant_start_date timestamptz,
capability_grant_end_date timestamptz,
capability_grant_max_num_usages int,
Expand Down

0 comments on commit 244a1c6

Please sign in to comment.