Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to use own User table to log in to Blazor App

$
0
0

I have an application that was originally created with MVC, DB is already populated with a User table (own table) and other tables (all test data). The user table already has relationships with other tables in the DB.

I am starting a new Blazor app (I am new with it). I will use this app to add some additional features to the original MVC application and people will need to log in using the same credentials. I created it using the built-in authentication (Individual Accounts) which comes with all the basics to log in, register accounts, etc. Great.

But now I want to make it work with my own User table and here is where I don't know how to proceed. Here are a few details:

  • People need to authenticate with email and password
  • This is a SaaS application so users can log in only if they are part of an Organization. (my User table has an ORG_ID).
  • The org ID will be defined by the current subdomain that was used to access the application (I haven't gotten to make this work yet but that is the goal)
  • By looking at the migration scripts I noticed it wants me to create a new database with AspNetUser and columns already defined. My User table doesn't have the exact same columns and password is encrypted using an already defined encryption policy.

Is it possible to use the built in authentication to achieve this? or is it better to create it from scratch?

Any recommendations are welcome!

I am just starting this application so I haven't tried anything specific yet. I am just trying to understand what are my options and what is the best solution.


Viewing all articles
Browse latest Browse all 4839

Trending Articles