StaffCoder
Spring Boot
Spring BootSpring Boot 4.1Java 25
12 modules · 48 challengesSign up
Module 7 of 12 · 4 challenges

Spring Boot Security: Authentication & Authorization

Learn how Spring Security guards your app: identifying callers from credentials or tokens, storing passwords in encoded form, restricting endpoints by role, and answering rejected requests in your own format.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Locker Room PIN Access

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers protecting a set of endpoints behind a username and password, while leaving the rest of the app open.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Newsroom Editor Permissions

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers giving three accounts different powers over the same endpoints, and refusing the ones that lack permission.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Clinic Staff Role Gate

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers issuing a signed token at login and deciding what each request may reach from that token alone.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

API Key Issuer

STAR
Solving it completes the module
—No data yetmedium
About this challenge

This problem covers authenticating callers from a request header, and cutting off a caller that keeps presenting a wrong key.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.