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

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 · WWC 2023

2:31 min

Securing REST APIs with JSON tokens and role access

Rustam Mehmandarov Rustam Mehmandarov · WWC 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

3:26 min

Designing APIs for security from day one

Philippe De Ryck · LIVE

Upcoming sessions on this topic

Open session

World Congress 2026 North America

It passed auth, then production caught fire

Alex Olivier

Co-founder & CPO @ Cerbos | OpenID AuthZEN Co-chair

Alex Olivier
Open session

World Congress 2026 North America

Secure-by-Inclusion: Preventing Accessibility Barriers from Becoming Security Vulnerabilities

Radostina (Ina) Tsvetkova

Norwegian Directorate of Labour and Welfare (NAV), Senior Advisor in Digital Accessibility and Inclusive Design

Radostina (Ina) Tsvetkova
Open session

World Congress 2026 North America

Zero-Trust Architecture for Agentic AI: Securing Multi-User Access and Third-Party Integrations

Borko Djurkovic

Member of Technical Staff at Cohere

Borko Djurkovic
Open session

World Congress 2026 North America

SecurePrompt: Building a Pre-Flight Security Layer for Agentic AI

Ravi Sastry Kadali

AI/ML Engineer at General Motors

Ravi Sastry Kadali
Open session

World Congress 2026 North America

Securing AI Agent Infrastructure: Identity, Attestation, and Trust at Scale

Abdel Fane

Founder of OpenA2A

Abdel Fane
Open session

World Congress 2026 North America

When Agents Became Users: Rearchitecting Identity and Permissions for AI at Scale

Yoav Gal, Dor Cohen

Yoav Gal
Dor Cohen