Search code examples
blazoridentityserver4openid-connect

Blazor OIDC Authentication popup


Problem

When I'm trying to use the RemoteAuthenticatorView in combination with OIDC, the page only redirects to the identityserver4 website

Expected outcome

A popup should be opened with the identityserver's content.


In contrast, AddMsalAuthentication provides a options.ProviderOptions.LoginMode (Docs)

Is there something similar for AddOidcAuthentication ?

Resources that I use to reproduce this issue:


Solution

  • The Identity Server 4 comes with a standard set of cshtml files.
    It hasn't any "popup" ready mode out of the box.

    If you want to implement the same behaviour as MSAL, you need to develop an integration via javascript like the one referenced in the index.html when you use Azure AD B2C authentication with Blazor.