Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

130
Views
Angular 2 and .NET Web API Authentication

What is the best way to have a username and password authentication system that works between Angular 2 and .NET Web API?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

First of all try to avoid using self implemented methods. Most commonly used approach is to use Json web token. https://jwt.io/ There for when you log in, return Token to angular2 and then pass it on every request. There are many examples of implementation and libraries to be used. https://github.com/auth0/angular2-jwt

How to use JWT in MVC application for authentication and authorization?

about 4 years ago · Santiago Trujillo Report

0

Best way is using a package called IdentityServer. I have written a tutorial on it but using one of its older versions, however it will give you a good idea:

Securing .Net Core Web API with IdentityServer4 (Resource Owner flow); using SQL Server db, enabling refresh tokens and external login - Part 1

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!