Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Microsoft AD with ASP.NET Zero #12084


User avatar
0
ESTeam created

Hi,

We intend to use AD authentication, I'm not sure if these values ​​will correspond to your OpenId (Microsoft Entra ID), or in my case it's something else.

The client sent me this data, which I supposedly have to use but I'm confused, not knowing where the secret id and value apply.

Settings client:

Portal.Web.Host app.settings


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ESTeam

    Do you use the Angular UI for your project ?

  • User Avatar
    0
    ESTeam created

    yes

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks. In that case, you can take a look at this blog post https://aspnetzero.com/blog/integrating-azure-active-directory-with-asp.net-zero.

  • User Avatar
    0
    ESTeam created

    I applied your solution but I'm getting this error. Has this happened to you before?

    AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application'

    I'm using these settings

  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @ESTeam

    When creating an application in Azure, make sure to select "Single-page application (SPA)" as the application type. This is important because you are using an Angular application.

    Additionally, in the Redirect URIs section, you need to add the endpoint where you are running the Angular part of your ASP.NET Zero application. The default URL is http://localhost:4200.

  • User Avatar
    0
    ESTeam created

    In this case, 1st option i put http://localhost:4200 and the second option http://localhost:4200/logout right?

  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi ESTeam

    Yes you can try it this way