Skip to content

IS-9422: adds template to evaluate browser context needed for BankID …#39

Open
pmhsfelix wants to merge 2 commits intodevfrom
feature/main/IS-9422-bankid-send-returnUrl-in-background
Open

IS-9422: adds template to evaluate browser context needed for BankID …#39
pmhsfelix wants to merge 2 commits intodevfrom
feature/main/IS-9422-bankid-send-returnUrl-in-background

Conversation

@pmhsfelix
Copy link
Copy Markdown

Adds template to evaluate browser context needed for BankID.

@pmhsfelix pmhsfelix force-pushed the feature/main/IS-9422-bankid-send-returnUrl-in-background branch from 6727d8f to ebb0829 Compare January 2, 2026 12:27
@pmhsfelix pmhsfelix marked this pull request as ready for review January 3, 2026 14:13
@pmhsfelix pmhsfelix changed the base branch from main to dev March 2, 2026 17:39
@pmhsfelix pmhsfelix force-pushed the feature/main/IS-9422-bankid-send-returnUrl-in-background branch from ebb0829 to 9c19da6 Compare March 2, 2026 17:40
Copilot AI review requested due to automatic review settings March 26, 2026 16:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new BankID Velocity template intended to collect basic browser context (touch capability) and then redirect back to the same URL so the authenticator flow can continue with that context available.

Changes:

  • Added a compute-browser-context.vm redirect template for the BankID “enter personal number” step.
  • Captures navigator.maxTouchPoints into a nmtp query parameter via a hidden form field.
  • Adds a ctx=1 marker parameter to ensure a non-empty query string on the redirect.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

document.getElementById("nmtp").setAttribute("value", "" + nmtp)
</script>

## just to ensure the query-string is not empty and we do not endup on an infinit loop
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "endup" should be "end up".

Suggested change
## just to ensure the query-string is not empty and we do not endup on an infinit loop
## just to ensure the query-string is not empty and we do not end up on an infinit loop

Copilot uses AI. Check for mistakes.
document.getElementById("nmtp").setAttribute("value", "" + nmtp)
</script>

## just to ensure the query-string is not empty and we do not endup on an infinit loop
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "infinit" should be "infinite".

Suggested change
## just to ensure the query-string is not empty and we do not endup on an infinit loop
## just to ensure the query-string is not empty and we do not endup on an infinite loop

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants