{"id":20509419,"url":"https://github.com/nikolaevdmv/distributed-auth-session-poc","last_synced_at":"2026-04-21T10:02:13.155Z","repository":{"id":250716576,"uuid":"692826802","full_name":"nikolaevdmv/distributed-auth-session-poc","owner":"nikolaevdmv","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-17T17:48:48.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T08:34:32.139Z","etag":null,"topics":["cookie-authentication","distributed-session","redis","spring-mvc","spring-session"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikolaevdmv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-17T17:44:56.000Z","updated_at":"2023-09-17T17:52:19.000Z","dependencies_parsed_at":"2024-07-29T17:01:22.065Z","dependency_job_id":"4fa52794-0f59-44d3-863f-8f1d27c35992","html_url":"https://github.com/nikolaevdmv/distributed-auth-session-poc","commit_stats":null,"previous_names":["nikolaevdmv/distributed-auth-session-poc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolaevdmv%2Fdistributed-auth-session-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolaevdmv%2Fdistributed-auth-session-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolaevdmv%2Fdistributed-auth-session-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolaevdmv%2Fdistributed-auth-session-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikolaevdmv","download_url":"https://codeload.github.com/nikolaevdmv/distributed-auth-session-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242112166,"owners_count":20073539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cookie-authentication","distributed-session","redis","spring-mvc","spring-session"],"created_at":"2024-11-15T20:24:37.495Z","updated_at":"2026-04-21T10:02:12.994Z","avatar_url":"https://github.com/nikolaevdmv.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distributed Session Cookie Authentication using Spring Session Redis\n## Proof of Concept\n\n### Requirements\n* Java 20\n* Docker compose 3\n\n### Architecture\n\n![diagram_png](diagram.png)\n\n### 1. Build the project\n```console\ngradlew.bat clean build\n```\n### 2. Run docker compose\n```console\ndocker-compose up\n```\n\n### 3. Run each subproject\n```console\ngradlew.bat :ui-app:bootRun\n```\n```console\ngradlew.bat :api-gateway:bootRun\n```\n```console\ngradlew.bat :weather-app:bootRun\n```\n\n### 4. Expected result\n* UI application will start at localhost:8080\n* Redis dashboard will start at localhost:8888\n\n\n* Visit localhost:8080\n* Try to open secured page\n```console\nlogin: user\npassword: password\n```\nAfter login you should see the content of the secured page \\\nIf you go straight to the secured api, it will pass you because browser has the session cookie\n```console\nhttp://localhost:8082/current-la-weather\n```\n\nBut if you go into redis dashboard, remove the cookie and try to open the page one more time, it will return 403 as expected\n\n### 5. Stop applications and docker\n```console\ndocker-compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolaevdmv%2Fdistributed-auth-session-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolaevdmv%2Fdistributed-auth-session-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolaevdmv%2Fdistributed-auth-session-poc/lists"}