Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tutorials about Creating Policies with Permissions #280

Closed
harnvo opened this issue Jul 4, 2024 · 3 comments
Closed

Add Tutorials about Creating Policies with Permissions #280

harnvo opened this issue Jul 4, 2024 · 3 comments
Labels

Comments

@harnvo
Copy link

harnvo commented Jul 4, 2024

Feature Request

There seems to be no tutorial about how to negotiate a contract when we have policies with permission, prohibition or obligation.

Including these values are very common for real-world scenerios, and it is very natural for beginners to try setting these values. However, simply following the tutorial without these values would not work (See this issue).

I suggest adding a tutorial for this so that beginners would not need to check the connector source code to know what went wrong.

Why Is the Feature Desired?

Laking this tutorial confuses beginners who wants to learn how to customize their policies.

Solution Proposal

There are two solutions:

  1. Provide another tutorial inside transfer folder
  2. Change the negotiate contract in the transfer-01-negotiation tutorial, tell ppl we should copy and paste permission, prohibition and obligation inside create-policy.json into policy in negotiate-contract.json.
@github-actions github-actions bot added the triage label Jul 4, 2024
Copy link

github-actions bot commented Jul 4, 2024

Thanks for your contribution 🔥 We will take a look asap 🚀

@ndr-brt
Copy link
Member

ndr-brt commented Jul 4, 2024

samples about policy enforcement can be found in the policy folder, currently there's one pretty explanatory:
https://github.com/eclipse-edc/Samples/tree/main/policy/policy-01-policy-enforcement

@harnvo harnvo closed this as completed Jul 5, 2024
@FantZero
Copy link

FantZero commented Jul 5, 2024

samples about policy enforcement can be found in the policy folder, currently there's one pretty explanatory: https://github.com/eclipse-edc/Samples/tree/main/policy/policy-01-policy-enforcement

This location-limiting policy in [policy-01-policy-enforcement] is a good example, but i want to try more complex policies such as location-limiting, useTime-limiting, and useDuration-limiting at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants