Coder Social home page Coder Social logo

artemmartynenko / spring-cloud-gateway-oauth2-sso-sample-application Goto Github PK

View Code? Open in Web Editor NEW
179.0 14.0 89.0 68 KB

Sample apllication for Spring Cloud Gateway as microservices API Gateway with OAuth2 Single Sign On

Java 91.53% HTML 8.47%

spring-cloud-gateway-oauth2-sso-sample-application's Introduction

Spring Cloud Gateway OAuth2 SSO Sample Application

It`s a sample application which how to achieve SSO for your microservices with usage of new Spring Cloud Gateway as your API gateway and also with OAuth2 authorization protocol and JWT tokens.

Sample dependencies
  • Spring Boot 2.1
  • Spring Cloud Gateway 2.1.M1
  • Spring Security 5.1.1

The main idea of this sample is to show how you can achieve functionality described in references below (where Zuul is used as your API Gateway) but with usage of new Spring Cloud Gateway provided with Spring Boot 2 and also with reactive approach (a new feature of Spring 5).

References:

spring-cloud-gateway-oauth2-sso-sample-application's People

Contributors

artemmartynenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-cloud-gateway-oauth2-sso-sample-application's Issues

oauth2.0-2

I look forward to your integration of oauth2.0 with spring gateway.

oauth2.0

Hello, can I build an oauth2.0 server to start and access locally? Thank you

LoadBalanced

Can implement loadbalanced for this application?

Can't start up

Hello, I downloaded your example, but the example needs to have a certificate authority to start, can you disclose the code of the certificate center? Thank you!
I tried to write it myself, but I couldn't start it.

About jwt-key-uri

I'm trying to play this logic with google oauth2 provider and I have given the following configuration.
spring: security: oauth2: client: registration: google: client-id: <client-id> client-secret: <client-secret> provider: example: jwt-key-uri: https://www.googleapis.com/oauth2/v3/certs
Unfortunately it is not working due to jwt-key-uri property value. May I know what this property does and what is the right value for google provider?

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.