Altinn / Altinn/altinn-studio

Redirect to error page when user is not allowed to represent party from cookie

Open
#17,580 1 comment 0 reactions 0 assignees View on GitHub
kind/chore
Dominant language
C#
Stars
169
Forks
100
Avg merge
1d 3h
Merged PRs (30d)
270

Description

### Description

Look at the error thrown in GetCurrentParty() in BootstrapGlobalService.cs, redirect appropriately.

### Additional Information

_No response_

### Tasks

_No response_

### Acceptance Criterias

_No response_

Contributor guide

Open the contributing guide

Research direction

Start in BootstrapGlobalService.cs at GetCurrentParty() and trace how the thrown error is currently handled. Find the existing error-page redirect path and confirm what happens when the cookie represents a party the user cannot access; done means that case redirects to the appropriate error page.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authorization, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.