Intermediate

Secure a PHP REST API with Sessions and Role Middleware

Bcrypt passwords, HttpOnly and SameSite session cookies, and two middleware functions that put access rules on the first line of…

  1. 1 Hash passwords with bcrypt
  2. 2 Configure the session cookie
  3. 3 Write the login endpoint
  4. 4 Add requireAuth and requireRole
⏱ 45 minutes
Start Guide
Advanced

Service Discovery and an API Gateway with Spring Cloud

Eureka for service discovery, Spring Cloud Gateway as the single entry point, and OpenFeign for service-to-service calls, as used in…

  1. 1 Create the Eureka registry
  2. 2 Register each service
  3. 3 Create the gateway
  4. 4 Route through the gateway
⏱ 1 hour
Start Guide