JavaScript Congress • Nov 25, 2021

Full-stack role-based authorization in 45 minutes

Bartosz Pietrucha

Hiding frontend UI buttons isn't real security. Master true full-stack role-based access control across your Angular client and Node.js backend in just 45 minutes.

Pause
Mute Enter Fullscreen
#1 about 5 min

Introduction to user authentication and authorization concepts

Differentiating between identity verification and access authorization establishes a strong foundation for full-stack security patterns.

#2 about 4 min

Domain modeling for multi-user scalable account systems

Structuring domain models around localized account boundaries simplifies the enforcement of strict data access controls.

#3 about 3 min

Sharing domain model implementations between frontend and backend

Referencing backend TypeScript models directly in frontend environments prevents error-prone code duplication across the stack.

#4 about 4 min

Designing business rules for account-level entity permissions

Defining strict ownership scenarios and role constraints controls how disparate users interact with shared cloud entities.

#5 about 2 min

Creating secure API routing architectures using URL prefixes

Dividing REST endpoints with distinct path prefixes establishes clear defensive boundaries across stateless API layers.

#6 about 2 min

Representing user rights through stateful or stateless authentication

Transmitting user role information natively through web tokens ensures the user interface dynamically reflects valid permissions.

#7 about 5 min

Implementing frontend route protection using Angular router guards

Encapsulating view availability with frontend routing limits navigation without replacing the need for authentic backend enforcement.

#8 about 5 min

Securing API requests with frontend interceptors and backend middlewares

Binding authorization tokens natively through client interceptors ensures server-side middleware processes restricted data queries automatically.

#9 about 3 min

Building custom structural directives for role-based component visibility

Abstracting redundant conditional checks inside custom Angular syntax streamlines the deployment of role-specific frontend components.

#10 about 9 min

Demonstrating role-based access control in a full-stack application

Intercepting unauthorized network requests directly from compromised clients illustrates the absolute necessity of server-side data validation.

#11 about 7 min

Implementing seven essential steps for modern web security

Evaluating architectural trade-offs against established industry checklists ensures comprehensive protection against malicious external payloads.

Matching moments

2:01 min

Implementing a layered authentication and authorization stack

Jose Manuel Ortega Jose Manuel Ortega · Europe 2026 Virtual

9:56 min

Final code walk-through and audience Q&A session

Germán Álvarez · LIVE

2:12 min

Shift of security responsibilities to frontend developers

Jakub Andrzejewski · World Congress 2023

2:31 min

Securing REST APIs with JSON tokens and role access

Rustam Mehmandarov Rustam Mehmandarov · World Congress 2025

3:54 min

Protecting Java microservices with role-based access

Thomas Südbröcker · LIVE

6:41 min

Audience questions on database architecture and security

William Lyon · LIVE