Giter Site home page Giter Site logo

spring-boot-authentication's Introduction

spring-boot-authentication

A sample project to show how to use JWT and OAuth with Spring Boot.

The sample consists of three distinct applications:

  • Auth Server - Provides SSO and OAuth endpoints
  • Web App - Basic stateful web application with a Zuul API Gateway configured.
  • Microservice - Stateless protected API Resource.

system architecture

##Usage

$ git clone [email protected]:monkey-codes/spring-boot-authentication.git
$ cd spring-boot-authentication
$ ./gradlew bootRun --parallel 

Web App starts on http://localhost:8080:/web-app

spring-boot-authentication's People

Contributors

monkey-codes 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

Watchers

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

spring-boot-authentication's Issues

Login URI on 9991 not 8080

Hi, first thanks for all this good job.

I don't understand something with your zuul config:

zuul:
  routes:
    auth:
      path: /auth/**
      url: http://localhost:9991/auth/
      sensitive-headers:
    resource:
      path: /api/**
      url: http://localhost:9992/
      sensitive-headers:

Why when I go on http://localhost:8080/wep-app I'm redirect to http://localhost:9991/auth/login and not http://localhost:8080/wep-app/auth/login why ? After login all call to /api/ call http://localhost:8080/web-app/api/1 so zuul config ok after login.

I can go on http://localhost:8080/web-app/auth/login directly but it's not the goal.

Any idea?

Social login

Hi,
Your example works great, thanks!
I've been trying to wire in Facebook/LinkedIn login along with form login to your examples and not able to get it working with the "token" flow. If you could point me in the right direction, that'd be great!

Thank you!!!

I have no idea how you figured this out. You are a lifesaver! Keep up the sharing :)

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.