GithubHelp home page GithubHelp logo

ranadheerreddy / spring-security Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nithin100/spring-security

0.0 2.0 0.0 1.5 MB

Spring boot SSO implementation

JavaScript 99.07% TypeScript 0.33% HTML 0.03% CSS 0.01% Java 0.44% FreeMarker 0.12%

spring-security's Introduction

spring-security

Spring boot SSO implementation

This is a working module of Spring Boot SSO over ZUUL proxy server. ZUUL is a server side proxy and can be used for mnany purposes. The module can be easiy extended with other functinalities which are crucial in microservice oriented architecture.

All the resource servers make use of Authorization and Authentication server using Oauth2 JWT tokens. In this module I have used Oauth2 authorization code grant flow along with JWT tokens.

Initially when a user is authenticated but wants to call a secured resource he is redirected to the auth server where he needs to put his credentials. These credentials can be stored in any kind of datastore (Here I have used in memory data store). Once these credentials are validated a redirection occurs from auth server to the requested resource. Under the hood lot of operations takes place depending on the client and authorization flow itself. In this case a HTTP cookie is created in the browser and this cookie is added to every subsequent requests. This cookie addition to the request is taken care by Zuul proxy server. Of course we can get control to this by using Zuul filters which are handy. Once the request reaches a resource server the token is validated and the request is served.

TODO:

  • Add Discovery server
  • Make all apps discoverable
  • Centralize configuration
  • Create multiple resource servers
  • Support inter communication between resources.

spring-security's People

Contributors

nithin100 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.