Giter VIP home page Giter VIP logo

spring-security-demo's Introduction

spring security demo

This is the boilerplate repo for spring security and session implementation.

This project is built using Spring-boot and Gradle.

Build & Run

  • >gradlew bootRun : to run the project
  • >gradlew bootWar : To package the project as a standalone war. The war file will be generated in /build/libs/* folder of the the selected service with file name *.war

Generate Token

Note that you are prompted for basic authentication to get the Token. Provide the following information for the username and password:

$ curl -v http://localhost:8080/api/v1/user/login -u admin:123456

Output

< HTTP/1.1 200 
< Vary: Origin
< Vary: Access-Control-Request-Method
< Vary: Access-Control-Request-Headers
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: SAMEORIGIN
< X-Auth-Token: bbfc9c30-d078-4911-bc32-0bda4c9595b3
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Tue, 28 Apr 2020 14:36:42 GMT

Features

  • This has a basic authentication service that authenticate any user with password "password"
  • redis session
  • concurrency

TODO

  • [] JPA based Authentication
  • [] Flyway Migration
  • [] Swagger Doc
  • [] CORS
  • [] Base Controller
  • [] Gzip compression

spring-security-demo's People

Contributors

renjithraj2005 avatar

Watchers

 avatar  avatar  avatar

spring-security-demo's Issues

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.