Angular Authentication with JWT

Angular Authentication with JWT

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

ysyau

how to proceed with ACL with custom properties in Application?

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…

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/… where it uses group as roles. Not sure if i like that, Auth0 has a cleaner solution for permission/role access control

Matt Raible

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

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”

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!

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.