Coder Social home page Coder Social logo

daggerok / oauth2-jdbc-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 3.0 211 KB

This repository contains Spring / OAuth2 application architecture: Authorization Server (with JDBC token store), Resourse Server (with secured REST API) and Web Client Application uses both to access secure data

Home Page: https://daggerok.github.io/oauth2-jdbc-example

License: MIT License

Java 79.59% JavaScript 11.52% CSS 1.52% HTML 6.94% Dockerfile 0.42%
spring-boot spring-mvc spring-security spring-oauth2 spring-jdbc thymeleaf spring-thymeleaf thymeleaf-template-engine thymeleaf-engine docker

oauth2-jdbc-example's Introduction

oauth2-jdbc-example Build Status

For some reason, big part of software developers community do not care about security I think main reason is because security hard topic. And it’s really sad.

Main goal of that project is learn spring-security oauth2 (JDBC) Because any enterprise application can’t go live without security, I believe it should be done first! You must avoid situation when big part of application architecture later may be rewritten to apply security…​

Checkout project reference :)

build and run in docker
docker-compose build base-image
docker-compose run -v ~/.m2:/root/.m2 -v ~/.gradle:/root/.gradle build
docker-compose run all; docker-compose logs -f -t

open http://127.0.0.1:8003 and use clientId / secret

h2 database cosnole:

  • visit: http://0.0.0.0:8001/h2-console/ (first use proper http basic auth if required: pwd / usr)

  • use next h2 console settings to connect to database:

    1. jdbc url: jdbc:h2:file:./oauth2-jdbc-example

    2. username: oauth2-jdbc-example

    3. password: oauth2-jdbc-example

build and run in docker
docker-compose stop

oauth2-jdbc-example's People

Contributors

daggerok avatar

Watchers

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