Altinn / Altinn/app-lib-dotnet

Endpoint for fetching party information for a given partyID

Open
#327 0 comments 0 reactions 0 assignees View on GitHub
kind/feature-request org/brg org/udir
Dominant language
C#
Stars
8
Forks
27
Avg merge
1h 21m
Merged PRs (30d)
7

Description

### Description

Backend issue for properly resolve #94

When loading an app instance where party is set we should in frontend ignore the party id in the cookie [frontend issue](https://github.com/Altinn/app-frontend-react/issues/1533)

Frontend receives the party id in the instance metadata, but has no endpoint to fetch the party information.

The parties controller needs to be extended with a get method for fetching party information for a given ID.
The authorization logic should be similar as in the {org}/{app}/api/authorization/parties/current endpoint

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the parties controller and compare its existing routes with the /{org}/{app}/api/authorization/parties/current endpoint and its authorization logic. Add a GET path that accepts a party ID and returns that party's information with equivalent authorization; done means the frontend can fetch the party identified in instance metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, authorization, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.