Git Product home page Git Product logo

spring-security-workshop's Introduction

Spring Security Workshop

A collection of Spring Security 5.7+ challenges; Part of a Spring Security blog series, and closely linked to the Spring Security Samples repository.

The project is divided into separate submodules, each of which demonstrates a single feature in isolation. While submodules can be combined to form a larger solution, we thought separating the functionality would make it easier to comprehend and extend.

Requirements

In order to participate, you will need the following:

  • Basic Spring knowledge

  • Java 11+

  • IDE of your choice

  • Lombok IDE plugin

  • curl or httpie or IntelliJ HTTP Client

  • docker-compose, for Keycloak (optional)

Tip
Use https://sdkman.io/ or https://scoop-docs.vercel.app/ to easily install Java.

Getting started

  1. Clone this Git repository.

    git clone https://github.com/jdriven/spring-security-workshop.git
  2. Verify the tests for the adding-spring-security module (only).

    ./mvnw -B verify --file adding-spring-security/pom.xml
  3. The other modules will have compilation failures or failing tests, as their implementation is (intentionally) incomplete. It’s up to you to implement the functionality to fix the tests!

  4. If you are new to Spring Security, start with Adding Spring Security!

  5. Once you have completed the basics, continue with any of the other modules.

Submodules

  1. Adding Spring Security: Secure an existing application. Start here!

  2. Auditing Spring Data Entities: Automatically track who modifies an entry, and when.

  3. Securing Spring Data Queries: Limit your query results to the active user.

  4. Custom Access Decision Voter: Restrict which users can access what objects.

  5. Custom Permission Evaluator: Separate read and write permissions on objects.

  6. Spring Cloud Gateway with OpenID Connect and TokenRelay: Route requests through a gateway.

spring-security-workshop's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar hetzijzo avatar tomdevroomen avatar gitter-badger avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.