Arafat Hegazy
Arafat Hegazy

Reputation: 31

What is the best method to implement Authentication/Authorization for VueJs frontend and Azure functions app backend

I am building a system that consists of frontend SPA build using VueJs and backend consists of a set of Azure functions (C#). I am done with the prototype and I am adding users authentication/authorization feature to the application. The application is B2B, so no need for external identity providers and there is no signup as well. All the users will be created by the system admins. I have multiple options to choose from:

  1. Develop the authentication/authorization/users management myself.
  2. Use Azure AD B2C
  3. Use Auth0 services

I did not use #2 and #3 before. I need help to choose the better option for my needs. or maybe there are better options.

Upvotes: 2

Views: 289

Answers (1)

derisen
derisen

Reputation: 660

Regarding (2), it seems you don't need to use Azure AD B2C, given that you will not authenticate with external identities. A better alternative is to create a multi-tenant SaaS application and offer it to other Azure AD tenants of your choice (even the free tier might cover your needs). For your Vue.js client, you can leverage MSAL.js and you can use Microsoft.Identity.Web to protect your Azure Function app

Have a look at these code samples.

Upvotes: 1

Related Questions