Adhere to more modern BankID recommendations for opening in mobile device #526
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR fixes #508
We have been able to reproduce issue with Edge+Intune that are security restricted, this fixes the issue. It also emulates the behaviour we see on test.bankid.com and follows the BankID documentation. If I understand correctly, the No such orders is when it thinks it has created a request to BankID(using bankid://) but it has been blocked, so a cancel or other action without a real order gives the "no such order" message.
Stops use of bankid:// on mobile devices that are often security restricted. Instead uses the https://app.bankid.com,
Source: https://developers.bankid.com/getting-started/autostart
Quote: "To open the Mobile BankID app from a browser on a mobile device, you should use unversal links for iOS and app links for Android. "
Displays fallback button by default on mobile devices:
Source: https://developers.bankid.com/resources/ui-guide-mobile
Quote: "4. Promt user to open BankID. The BankID app should be opened automatically using autostart. However, in case this fails for some reason, the user should be asked to open the app manually."