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

Azure Single Tenant Authentication #11631


User avatar
0
galtawill created

I configure Microsoft external login and it works fine when the Azure app registers account type multi-tenant Now I need to change it to the single tenant but I go the attached error


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

    Hi,

    Did you enable Microsoft login via OpenIdConnect or Microsoft on appsettings.json file ?

  • User Avatar
    0
    galtawill created

    I am using Microsoft and it works fine if I configure the app register account type multitenant but I need to switch it to a single tenant

    "Microsoft": { "IsEnabled": "true", "ConsumerKey": "d2a0f147-1556-4ffb-843e-db8abcce2553", "ConsumerSecret": "chW8Q~XfGxvISDzFaBZhvJ7rWj1aeAAV7J1Dhaid" },

  • User Avatar
    0
    galtawill created

    Any Help Please

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @galtawill

    Sorry for the delay. Do you use Angular version or Razor Pages (MVC) ?

  • User Avatar
    0
    galtawill created

    I am using ASP.NET Core MVC

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you try to set AuthorizationEndpoint in AuthConfigurer.cs as shown below but to a tenant specific URL ?

  • User Avatar
    0
    galtawill created

    I try it but got the same issue after login any other advice

  • User Avatar
    0
    galtawill created

    thanks for the help it works fine now but you should add TokenEndpoint to the Microsoft option

    options.TokenEndpoint = configuration["Authentication:Microsoft:TokenEndpoint"];