{"id":19656480,"url":"https://github.com/daggerok/oauth2-jdbc-example","last_synced_at":"2026-04-08T20:45:05.642Z","repository":{"id":151041899,"uuid":"135950421","full_name":"daggerok/oauth2-jdbc-example","owner":"daggerok","description":"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","archived":false,"fork":false,"pushed_at":"2018-09-04T14:31:22.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-20T06:32:11.865Z","etag":null,"topics":["adoc","asciidoc","asciidoctor","docker","docker-compose","gradle","spring-boot","spring-jdbc","spring-mvc","spring-oauth2","spring-security","spring-thymeleaf","thymeleaf","thymeleaf-engine","thymeleaf-template-engine"],"latest_commit_sha":null,"homepage":"https://daggerok.github.io/oauth2-jdbc-example","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-04T00:05:44.000Z","updated_at":"2018-09-04T14:24:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"64dfe911-cfcc-464d-ac68-2e8996f247ed","html_url":"https://github.com/daggerok/oauth2-jdbc-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daggerok/oauth2-jdbc-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Foauth2-jdbc-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Foauth2-jdbc-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Foauth2-jdbc-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Foauth2-jdbc-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/oauth2-jdbc-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Foauth2-jdbc-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31573788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adoc","asciidoc","asciidoctor","docker","docker-compose","gradle","spring-boot","spring-jdbc","spring-mvc","spring-oauth2","spring-security","spring-thymeleaf","thymeleaf","thymeleaf-engine","thymeleaf-template-engine"],"created_at":"2024-11-11T15:27:55.229Z","updated_at":"2026-04-08T20:45:05.622Z","avatar_url":"https://github.com/daggerok.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= oauth2-jdbc-example image:https://travis-ci.org/daggerok/oauth2-jdbc-example.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/daggerok/oauth2-jdbc-example\"]\n\n//tag::content[]\nFor some reason, big part of software developers community do not care about security\nI think main reason is because security hard topic. And it's really sad.\n\nMain goal of that project is learn spring-security oauth2 (JDBC)\nBecause any enterprise application can't go live without security, I believe it should be done first!\nYou must avoid situation when big part of application architecture later may be rewritten to apply security...\n//end::content[]\n\nCheckout link:https://daggerok.github.io/security-first[project reference] :)\n\n.build and run in docker\n[source,bash]\n----\ndocker-compose build base-image\ndocker-compose run -v ~/.m2:/root/.m2 -v ~/.gradle:/root/.gradle build\ndocker-compose run all; docker-compose logs -f -t\n----\n\nopen http://127.0.0.1:8003 and use clientId / secret\n\nh2 database cosnole:\n\n- visit: http://0.0.0.0:8001/h2-console/ (first use proper http basic auth if required: pwd / usr)\n- use next h2 console settings to connect to database:\n  .. jdbc url: jdbc:h2:file:./oauth2-jdbc-example\n  .. username: oauth2-jdbc-example\n  .. password: oauth2-jdbc-example\n\n.build and run in docker\n[source,bash]\n----\ndocker-compose stop\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Foauth2-jdbc-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Foauth2-jdbc-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Foauth2-jdbc-example/lists"}