Skip to content

Add policy Fluree-Policy* headers for policy SPARQL#98

Merged
bplatz merged 4 commits intomainfrom
feature/sparql-policy
Oct 12, 2024
Merged

Add policy Fluree-Policy* headers for policy SPARQL#98
bplatz merged 4 commits intomainfrom
feature/sparql-policy

Conversation

@bplatz
Copy link
Contributor

@bplatz bplatz commented Oct 11, 2024

Adds support for 4 new HTTP headers to control policy.

These are here primarily for SPARQL queries which don't have an opts map where we can define policy-related items.

The headers added, along with their equivalent :opts map keys are:
Fluree-Policy-Class -> :policy-class
Fluree-Policy-Identity -> :identity
Fluree-Policy-Values -> :policy-values (stringified JSON)
Fluree-Policy -> :policy (stringified JSON)

*Note these will be overridden by a signed credential request.

Tests are included for all of these headers.

@bplatz bplatz requested a review from a team October 11, 2024 17:54
Copy link
Contributor

@dpetran dpetran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❇️

@bplatz bplatz merged commit 0973903 into main Oct 12, 2024
@bplatz bplatz deleted the feature/sparql-policy branch October 12, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants