Giter Site home page Giter Site logo

armdev / microservices-security Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 175 KB

spring cloud: microservices-security, from Zero To One

Java 97.29% Dockerfile 1.21% Shell 1.50%
spring-cloud jwt jwt-authentication jwt-token java microservices zipkin zipkin-sleuth netbeans mongodb

microservices-security's Introduction

microservices-security

spring cloud: microservices-security

  1. browser microservice has role of frontend, it is make register/login publish wiki requests to zuul
  2. zuul generate zuul token and send it to register microservice
  3. register validate zuul token and do registration
  4. login: auth microservice also receive zuul token validate and after succesfull login service generate auth token and return back.
  5. with auth and zuul tokens wiki service insert wiki json to mongodb.
  6. wiki service get user email from auth token and call auth service and validate the user.
  7. eureka service is password protected and all microservices for connect eureka use username/password.
  8. Each microservice has doublicated token provider services, an all credentials in yml files.
  9. zipkin store all traces from microservices in mysql.

./run.sh

zipkin

http://localhost:9411/zipkin/

eureka

http://localhost:8761/

zuul

http://localhost:8079/gateway/micro/auth/api/v2/tokens/generate/test/token

auth

http://localhost:5001/swagger-ui.html

browser

http://localhost:5002/swagger-ui.html

register

http://localhost:5003/swagger-ui.html

wiki

http://localhost:5004/swagger-ui.html

phpmyadmin

http://localhost:9191 (root:root)

help:

The following only builds the images, does not start the containers:

docker-compose build The following builds the images if the images do not exist and starts the containers:

docker-compose up If you add the --build option, it is forced to build the images even when not needed:

docker-compose up --build The following skips the image build process:

docker-compose up --no-build If the images aren't built beforehand, it fails.

microservices-security's People

Contributors

armdev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lc2a rkitin

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.