Skip to content

Support running Active Login in Blazor Server #360

@bjorndaniel

Description

@bjorndaniel

When using ActiveLogin in a Blazor Server app the BankId appliction wont open on the device for Safari on iOS

We have a .NET 6 Blazor Server App using Active Login AspNetCore 4.1.0 and only same-device.
When using Edge or Chrome on Safari iOS everything works flawelessly but if you use Safari the BankId app wont open, instead it opens the app.bankid.com url and if you click on the OPEN button in the window the app opens but has nothing to sign:
image

I have tried debugging using your projects and not the nugets but I cannot figure out why it is not working.
The last thing that gets logged is: BankID auth succeeded with the OrderRef and then the script launches the url https://app.bankid.com with an autostarttoken and redirect, that looks correct.

Other apps work (specifically you Standalone.MvcSample on which our auth is based) so it is not the issue that is described on the page.

I have made a small app to show the problem, it is available here:
https://github.com/bjorndaniel/bankid-activelogin-blazor-issue
The authentication is based upon your Standalone.MvcSample and I use Razor pages for the ExternalCallback-pages
To test the issue:

  • Edit Properties/launchSettings.json and add the ip of the machine running the app:
    image

  • Run the app and go to that url from Safari on an iPhone and click Login

Any help on this issue would be much appreciated as Safari on iOS is a showstopper for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions