Base solution for your next web application
Open Closed

Authenticate using API #11624


User avatar
0
SnapAPdotNet created

Hi, I am in the process of upgrading to the .NET Core Angular solution from the MVC5 AngularJS solution. I have both server and app running as separate web applicaitons in Azure and I'm able to login, add tenants, add users, etc.

I have a series of web jobs that run in Azure. The jobs used to call the /Account endpoint to authenticate and get a token. I was able to specify a tenant in the "tenancyName" property to login as the correct tenant.

I have read the "Sign In Without Specifying Tenant" tutorial and it won't work for my design because of the email addresses having to be unique. Currently when we create tenants (and we have thousands), we create 'default' users that have known email addresses for our QA and Sales teams to use. SO, before I start changing the default users to have unique emails across tenants, is there a way to do this without the unique email requirement?

Thanks!


1 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @SnapAPdotNet,

    To enable users to log in independently of tenants, each user should have a unique identifier. If the username tables contain unique content, you can set them to be used for logging in. Otherwise, you would need to update the email addresses.

    I hope this helps! If you have any further questions, feel free to ask.