Deesha Tech Academy
Menu
DTA-08AvailableJavaSpring BootSpring SecurityJWTOAuth2Keycloak

Spring Security

Secure ShopCentral end to end with Spring Security, authorisation tests, sessions, JWT and OAuth2/OIDC

Designed for

  • Developers with a working Spring Boot API that needs real security
  • Developers who copy security configuration without understanding it
  • Freshers preparing for interviews where authentication and JWT are standard questions
Fee
₹3,000
Duration
10 guided hours
Mode
Online / Offline
Ask about this course

Course curriculum

5 progressive modules

Duration: 10 guided hours

  1. The week

    Sessions 1–5FoundationIntermediateAdvanced
    • 01The filter chain and authentication

      What you build

      Spring Security in front of the ShopCentral API, with the Core Java password hashes upgraded on the next sign-in.

      • the filter chain on every request
      • SecurityFilterChain as a bean
      • UserDetailsService
      • DelegatingPasswordEncoder and hash upgrades
      • security headers
    • 02Sessions, CSRF and CORS

      What you build

      The storefront signing customers in through the same API routes it always used, with secure sessions and CSRF protection.

      • JSON login on the existing sign-in route
      • the anonymous shopper and cart merge
      • session fixation and timeouts
      • CSRF with a cookie token
      • security tests
    • 03Authorisation and method security

      What you build

      Customers who can only see their own orders, addresses and shopping lists, and a back-office role, checked against the OWASP API Top 10.

      • URL rules and request matchers
      • roles compared with authorities
      • method security
      • ownership checks
      • the OWASP API Security Top 10
      • BOLA/IDOR negative tests for cross-customer order and address access
    • 04JWT and resource servers

      What you build

      An identity module that issues and validates signed tokens, ready for the services of the microservices course to trust.

      • a JWT decoded
      • RS256 tokens and a JWKS endpoint
      • resource-server validation
      • refresh tokens with rotation
      • revocation and the bad-token checklist
      • Issuer, audience, expiry and signature validation; deny on verification failure
    • 05OAuth2 and OpenID Connect with Keycloak

      What you build

      Back-office staff and machine clients signing in through Keycloak, while shoppers keep the storefront sign-in.

      • OAuth2 flows and OpenID Connect
      • Keycloak realms, clients and roles
      • authorization code with PKCE
      • one resource server, two issuers
      • client credentials
      • Trust boundaries between browser, BFF, gateway and services

Batches

Choose a schedule that works for you

No dates yet

Tell us the schedule that would work

We plan batches around demand. Weekend, morning and intensive formats open when enough people ask for them.

Register your interest

Who teaches this

Learn with experienced practitioners

All trainers and mentors
  • Vishal Shah

    Vishal Shah

    Founder & Principal Trainer

    Two decades building and teaching commerce, banking and cloud platforms, and still writing code

    • Java & Spring Boot microservices
    • TypeScript, React, Angular & Next.js
    • Composable commerce (commercetools)
    Full profile →

Detailed course information

Full course brief

Security is the part of a backend most often copied rather than understood. A JWT filter from a blog post works on the happy path and fails in ways nobody notices until an audit.

This course secures a real shop. The ShopCentral storefront keeps signing customers in through the same API routes it always used, while Spring Security takes over sessions, CSRF, authorisation and tokens. Every rule is proved with a test that tries to break it, and the course finishes with Keycloak and the OAuth2 flow most courses wave at.

Who this is for

You need a working Spring Boot API with a persistence layer, the depth taught in Spring Boot REST API and Spring Data JPA, which build the service you secure here.

Where it leads

Group three of Backend Developer (Java) and part of the Java Product Engineering Pathway, and the starting point of Microservices with Spring Cloud.

ShopCentral milestone and engineering evidence

Curriculum milestone: 02 · ShopCentral API, stage 2: Spring Security.

Engineering acceptance criteria:

  • Show anonymous, customer and administrator access boundaries in automated tests.
  • Block cross-customer order access (IDOR/BOLA) and explain the authorisation checks.
  • Show session/CSRF and JWT/OIDC approaches with documented trust boundaries.

Professional practice integrated with delivery: short feature brief and acceptance criteria; issue/branch-based implementation; a small pull-request-style review; tests that can be reproduced; and a demonstration of the working functionality or a deliberately injected failure. The instructor provides a working checkpoint and an explicit handoff to the next course.

No dates announced

We open batches around demand. Tell us the schedule that would work and we will let you know first.

Send your details instead

This website does not store or send these details. Your email or WhatsApp app will open with the message ready for you to review and send.

Where this leads

Continue with

Need help deciding?

Ask about the curriculum, delivery options or the next batch.

Talk to Academy
Enquire