# Angular Authentication with JWT

**URL:** <https://devforum.okta.com/t/angular-authentication-with-jwt/17053>\
**Category:** Developer Blog Comments\
**Created:** [May 16, 2019, 2:09pm UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053 "2019-05-16T14:09:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [May 16, 2019, 2:09pm UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/1 "2019-05-16T14:09:38Z")

</div>

[Angular Authentication with JWT](https://developer.okta.com/blog/2019/05/16/angular-authentication-jwt)

This tutorial shows how to build a Node and Angular app that uses JWT for authentication.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [May 20, 2019, 2:05pm UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/2 "2019-05-20T14:05:54Z")

</div>

**ysyau**

how to proceed with ACL with custom properties in Application?

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [May 24, 2019, 10:52pm UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/3 "2019-05-24T22:52:34Z")

</div>

**Matt Raible**

I’m not sure what you mean exactly, but we do have an open issue and example in our Angular SDK to show/hide parts of components with a directive that examines a `groups` claim. [https://github.com/okta/okt…](https://github.com/okta/okta-oidc-js/issues/36 "https://github.com/okta/okta-oidc-js/issues/36")

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [May 26, 2019, 12:54pm UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/4 "2019-05-26T12:54:55Z")

</div>

**ysyau**

What I meant is Role Based Access Control. As i wasn’t sure how we should introduce “Role” claim in access token. The solution is mentioned here [https://developer.okta.com/…](https://developer.okta.com/blog/2017/10/13/okta-groups-spring-security#groups "https://developer.okta.com/blog/2017/10/13/okta-groups-spring-security#groups") where it uses group as roles. Not sure if i like that, Auth0 has a cleaner solution for permission/role access control

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [June 4, 2019, 6:38pm UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/5 "2019-06-04T18:38:56Z")

</div>

**Matt Raible**

Can you please describe how you think the solution should work?

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [June 8, 2019, 2:28am UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/6 "2019-06-08T02:28:21Z")

</div>

**ysyau**

Yes, but this is only based on my opinion, it will be much better if the i can make the attributes from “Application” to be part of the claims. By specifying “scope” = “application\_name”

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [September 19, 2021, 2:33pm UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/7 "2021-09-19T14:33:53Z")

</div>

**João Carrondo**

Hey there, i’ve followed the code and this all works wonderful, so thanks a lot for it. I just wanted to know how i’d do if i wanted to subscribe to a service that subscribes to the already existing server service.  
For example a “members” service that provides the members to multiple components but uses the server service to fetch the data from the express server.  
Thanks!

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [September 22, 2021, 4:34am UTC](https://devforum.okta.com/t/angular-authentication-with-jwt/17053/8 "2021-09-22T04:34:38Z")

</div>

**Matt Raible**

Hello João,

Since this question is not Okta-specific, you might have better luck asking it on Stack Overflow. That way, more people will see it. If you include the code you’re trying to make work and errors you’re seeing, you’ll likely get an answer faster.

If you believe it is Okta-specific, please post your question on our [developer forums](https://devforum.okta.com "https://devforum.okta.com").
