week 8 – authentication in Angular, storing JWT

As expected, I didn’t have much time to work on the application this week, but I think I learned a lot about how web client-side authentication works (something that was completely new to me) and about authentication in general.
I’ve implemented simple sign-up and sign-in flows, but I still need to extend and test them more thoroughly. From a project perspective, I didn’t complete any useful increments this week, but I’m glad I learned what Angular app authentication might look, because that was one of the two things I was most concerned about (the second one is the cloud app hosting).

what did I do last week?

๐Ÿ”ถ added authentication Web API in .NET 6
๐Ÿ”ถ learned about JWT in web client
๐Ÿ”ถ learned about HTTP cookie only
๐Ÿ”ถ learned about HttpInterceptor in Angular
๐Ÿ”ถ learned about CanActivate interface in Angular

what was the biggest impediment?

It was hard to find a comprehensive (with working examples) article or video about the differences between storing JWT in local/session storage vs storing in the cookie.

what is the plan for next week?

Like I mentioned previously, for this week the goals are the same as for the previous one:

  • finish implementing authorization (signing/logging in)
  • add API controller in .NET 6 (with user and questions management)
  • storing questions & user data in MSSQL (using Entity Framework)
  • add at least 5 questions to the other categories

time spent

  • from last week
    9h
  • overall
    97h 30m

costs

  • from last week
    0 $
  • overall
    32 $

summary

I hope that in the first part of the week I will finish the authorization part and move on to the next goals. This week I will be able to devote more time to the project.

Related Posts

Leave a Reply

Your email address will not be published.