# Authentication and Authorization Section

**URL:** https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621
**Category:** Angular
**Created:** [February 12, 2021, 4:58am UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621 "2021-02-12T04:58:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)
#### Post date: [February 12, 2021, 4:58am UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621/1 "2021-02-12T04:58:24Z")

</div>

Has anyone ported the “Authentication and Authorization” code to Angular 11? In particular, the “fake” or mock backend part of the exercise.

I’ve been googling to see if I could port it myself. I see a few options that I haven’t tried out yet.

1. I found a tool that will help you update your old Angular code to a newer version. Has anyone tried this? [https://update.angular.io/](https://update.angular.io/)

2. Here are two examples of how to implement a mock backend, one in Angular 10, the other in Angular 2. If I learn how both of these work, then I could port the code. However, by then I’ll have learned the skill, why bother with the section, right? 🙂

# Angular 2 - MockBackend Example for Backendless Development

> **[Angular 2 - MockBackend Example for Backendless Development | Jason Watmore's...](https://jasonwatmore.com/post/2016/11/24/angular-2-mockbackend-example-for-backendless-development)**

# Angular 10 - Fake Backend Example for Backendless Development

> **[Angular 10 - Fake Backend Example for Backendless Development | Jason...](https://jasonwatmore.com/post/2020/07/18/angular-10-fake-backend-example-for-backendless-development)**

---

<div class="post-metadata">

### Author: ![mts\_mn09](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mts\_mn09](https://forum.codewithmosh.com/u/mts_mn09)
#### Post date: [July 24, 2021, 5:06am UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621/2 "2021-07-24T05:06:40Z")

</div>

Could you solve it? it’s a shame that this course is still being selled when it’s so outdated.

---

<div class="post-metadata">

### Author: ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)
#### Post date: [July 24, 2021, 6:58am UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621/3 "2021-07-24T06:58:58Z")

</div>

Hi, so what I ended up doing is using the same version of Angular that Mosh uses in the course. That way I could learn how to write Angular code, then later focus on porting to the latest version. I still use this course as reference to this day.

---

<div class="post-metadata">

### Author: ![mts\_mn09](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mts\_mn09](https://forum.codewithmosh.com/u/mts_mn09)
#### Post date: [July 24, 2021, 4:07pm UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621/4 "2021-07-24T16:07:26Z")

</div>

Thanks, think I’ll do the same.

---

<div class="post-metadata">

### Author: ![alberttsangshsi](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alberttsangshsi](https://forum.codewithmosh.com/u/alberttsangshsi)
#### Post date: [August 6, 2021, 1:38am UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621/5 "2021-08-06T01:38:03Z")

</div>

I encountered similar problems. I am self-studying Angular-12 by following Mosh’s tutorials. His presentation is good but Angular makes updates quite often.  
For the section of Authenticatioin and Authorization , I finally gave up to use Mosh’s fakebackend codes. Instead, I tried to implement his backend logics by using Express-JS. And it works. Fortunately, I have some understanding for the express framework. Hope my sharing can provide another side of views for solving the problems.

However, I still want to know the counterparts of MockBackend in Anugular-12 and how to implement fakebackend by using such counterparts . As far as I know from stackoverflow , MockBackend has already been deprecated since Angular 4.

---

<div class="post-metadata">

### Author: ![ehsanabdi](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@ehsanabdi](https://forum.codewithmosh.com/u/ehsanabdi)
#### Post date: [April 14, 2022, 4:15pm UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-section/2621/6 "2022-04-14T16:15:52Z")

</div>

Hi. I have replied to this post in a new post. Search for: Authentication and Authorization section in Angular 4: Beginner to Pro in this forum or visit: [Authentication and Authorization section in Angular 4: Beginner to Pro](https://forum.codewithmosh.com/t/authentication-and-authorization-section-in-angular-4-beginner-to-pro/11914)
