Giter Club home page Giter Club logo

spring-session-cocurrency's Introduction

Spring Session Concurrency Test

Steps to reproduce are:

  • Run redis localhost at default port with config:
    config set notify-keyspace-events KEA
    config get notify-keyspace-events
  • Standard Spring Boot 2 Application with Maven, So run class SpringSessionCocurrencyApplication with main method(I was using Java 11 on my machine).

  • Using Spring Security Header Strategy, So use X-Auth-Token for session.

  • Rest Application, so login by using below curl command:

        curl -v -X POST \
          http://localhost:8080/login \
          -H 'Cache-Control: no-cache' \
          -H 'Content-Type: application/json' \
          -d '{
        	
        	"username" : "[email protected]",
        	"password" : "password"
        }'
  • Rest Application, so logout by using below curl command:
        curl -v -X GET \
          http://localhost:8080/logout \
          -H 'Cache-Control: no-cache' \
          -H 'X-Auth-Token: 07ea4b64-4944-44c2-a33c-dfc7c1126217'
  • Rest Application, so access me endpoint by below curl command:
    curl -v -X GET \
      http://localhost:8080/me \
      -H 'Cache-Control: no-cache' \
      -H 'X-Auth-Token: e5d5057a-63c6-46ee-9e80-f1442248400e'

spring-session-cocurrency's People

Contributors

ankurpathak avatar

Watchers

 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.