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

Authentication level claim is 0 in dialog token #1458

Open
elsand opened this issue Nov 14, 2024 · 1 comment
Open

Authentication level claim is 0 in dialog token #1458

elsand opened this issue Nov 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@elsand
Copy link
Member

elsand commented Nov 14, 2024

Description

See title

Reproduction

  1. Authenticate with synth user 01885897157 in ID-porten test
  2. Navigate to https://af.tt.altinn.no/inbox/01930b47-adf6-712b-a1ec-4a36c50c71cd
  3. Note the request to the FCE at https://platform.tt02.altinn.no/correspondence/api/v1/correspondence/14429ce4-92db-4af2-8fa9-e5d90ceb6f10/content, see the dialog token supplied
  4. Break it open in jwt.io or similar, and note the l-claim (lower case L)

Expected behavior

It should be 3 or 4 depending on selection in ID-porten

Actual behavior

It is 0

Additional information

This works fine using the tokengenerator, so it appears to be discrepancies with real ID-porten tokens. This is to be considered a bug in the generator.

@elsand elsand added the bug Something isn't working label Nov 14, 2024
@elsand elsand moved this from New issues to Backlog in Dialogporten / Arbeidsflate - GAMMEL Nov 14, 2024
@elsand elsand moved this from Backlog to Ready in Dialogporten / Arbeidsflate - GAMMEL Nov 15, 2024
@Ceredron
Copy link

Correspondence has pushed out hotfix in the staging environment to disable auth level check in dialogtokens.

@Fargekritt Fargekritt moved this from Ready to Doing in Dialogporten / Arbeidsflate - GAMMEL Jan 6, 2025
@Fargekritt Fargekritt self-assigned this Jan 6, 2025
@Fargekritt Fargekritt moved this from Doing to Code Review og PR in Dialogporten / Arbeidsflate - GAMMEL Jan 7, 2025
@Fargekritt Fargekritt moved this from Doing to Code Review og PR in Dialogporten / Arbeidsflate - GAMMEL Jan 8, 2025
Fargekritt added a commit that referenced this issue Jan 9, 2025
## Description

Changed IdportenAuthLevelClaim constant to fix parsing of Acr field in
dialog token

## Related Issue(s)

- #1458 

## Verification

- [x] **Your** code builds clean without any errors or warnings
- [x] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)
@elsand elsand moved this to Code Review og PR in Dialogporten / Arbeidsflate - NY Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Code Review og PR
Development

No branches or pull requests

3 participants