A 7 minute guide to SESSIONS and COOKIES for authentication in Angular
My Angular course: https://angularstart.com/
If we want our applications to be secure then we need to make sure our backend is secure. Before we send any data to a user, we want to make sure that they are authorised to receive that data. Sessions and cookies are a great way to facilitate this and has been the backbone of many authentication approaches for a long time.
Previous video: https://www.youtube.com/watch?v=1Q7r4tagFns
NOTE: Do not use this in production, it is not secure
Client: https://github.com/joshuamorony/angularstart-quicklists/tree/go-login
Server: https://github.com/joshuamorony/quicklists-go-api/tree/auth
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Want to build mobile apps with Angular?: https://ionicstart.com
0:00 Introduction
1:11 Route guards are not secure
2:17 Securing backend endpoints
3:00 Implementing sessions
3:37 Handling logins
4:24 Creating a session cookie
5:35 Configuring Angular to send cookies
#angular #golang #authentication
- More tutorials: https://modernangular.com
- Follow me on Twitter: https://twitter.com/joshuamorony