Skip to content

WiseJ 3.5 Pages Application - How to authenticate with Azure B2C? #4495

Closed

Description

@itg-assistant

Tim asked 2024-03-07 00:17:47 UTC

Hello,

I wondering if there is an example available that shows how a WiseJ 3.5 Pages Application would go about authenticating with Azure B2c.  Ideally I'd like to use Microsoft Identify nuget packages directly and not some other poorly supported nuget packages like DotNetAuth.

My Azure B2c tenant is setup and I use it to authenticate with native apps and asp.net mvc applications.  Getting it to work with a WiseJ 3.5 Pages application is proving to nebulus.  It appears that the WiseJ Pages application is an asp.net core application.  However, it is single page so you cannot use the mvc callback approach, so does that mean the authentication needs be done via the javascript libraries?  I've been crawling through the examples mentioned on this forum and others I found online to find the information that I'm looking for.  After several frustrating days I'm here, hoping that someone has an example that demonstrates how this can be done.

Tim

Activity

  1. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Alaa (ITG) answered 2024-03-07 14:13:44 UTC

    Hi Tim,

    I have attached a sample for Azure B2C authentication in a Wisej.NET application.

    P.S: It works for both .NET Framework and .NET Core, while the .NET Core implementation is native, the .NET Framework one uses Owin as a middleware!

    Best regards,
    Alaa

  2. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Tim answered 2024-03-07 22:35:20 UTC

    Thank you for the example. This was very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions