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

RRR Admin CRUD #253

Closed
22 of 24 tasks
Tracked by #327 ...
TheTechArch opened this issue Sep 25, 2023 · 1 comment
Closed
22 of 24 tasks
Tracked by #327 ...

RRR Admin CRUD #253

TheTechArch opened this issue Sep 25, 2023 · 1 comment
Assignees
Labels
kind/user-story Used for issues that describes functionality for our users. status/draft Status: When you create an issue before you have enough info to properly describe the issue.

Comments

@TheTechArch
Copy link
Member

TheTechArch commented Sep 25, 2023

Description

We need an API to let resource owners administrate the resource rights registry.

As a service owner, you can add, remove, or update rights for a given organization/person for a given resource.

This data will be used in PDP to deny/allow access to a resource that has enabled RRR.

It will also disable access to delegating rights relegated to resources.

Model

{
"RRRID": "9726e418-911e-4c55-a2e5-186446fa0b7c"
"Resource": "urn:altinn:resource:skd_skattemelding,
"PartyID": 1234325,
"Party": "orgno:923488",
"Action": ["Read","Write"],
"RequiredClaim": "urn:scope:flyttemelding"
}

Additional Information

When adding rights to a resource, the API needs to verify that.

  • Authenticated org has scope for resource registry
  • Authenticated org owns the resource in question
  • Verify that the resource has enabled RRR
  • Find the correct party and add it to row for performance lookup
  • When deleting a row, we need to add it do a history tabell

Tasks

  1. kind/task
    Alxandr

API methods

  1. kind/task
  2. kind/task
    Alxandr

Known bugs

  1. kind/task

Acceptance Criteria

  • Service Owners can add RRR data only for resources owned by them
  • Service owner can modify RRR data only for resources owned by them
  • Only orgs with write scope to resource registry is allowed to access RRR api

Related

@Alxandr
Copy link
Contributor

Alxandr commented Mar 21, 2024

Related: Altinn/altinn-register#180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/user-story Used for issues that describes functionality for our users. status/draft Status: When you create an issue before you have enough info to properly describe the issue.
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants