{"id":18672590,"url":"https://github.com/dimmaryanto93/springboot-oauth2-sso-example","last_synced_at":"2026-05-19T19:02:15.044Z","repository":{"id":107985067,"uuid":"142129023","full_name":"dimMaryanto93/springboot-oauth2-sso-example","owner":"dimMaryanto93","description":"Spring security oauth2 Authorization and Resource Server","archived":false,"fork":false,"pushed_at":"2018-08-30T10:11:45.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T10:06:19.677Z","etag":null,"topics":["auth-server","authorization","oauth2","oauth2-server","springboot","sso"],"latest_commit_sha":null,"homepage":null,"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/dimMaryanto93.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":"2018-07-24T08:31:10.000Z","updated_at":"2019-03-11T12:31:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"37ad94bf-9cee-4e0e-abb8-45a3f9573e32","html_url":"https://github.com/dimMaryanto93/springboot-oauth2-sso-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimMaryanto93/springboot-oauth2-sso-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimMaryanto93%2Fspringboot-oauth2-sso-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimMaryanto93%2Fspringboot-oauth2-sso-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimMaryanto93%2Fspringboot-oauth2-sso-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimMaryanto93%2Fspringboot-oauth2-sso-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimMaryanto93","download_url":"https://codeload.github.com/dimMaryanto93/springboot-oauth2-sso-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimMaryanto93%2Fspringboot-oauth2-sso-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267482003,"owners_count":24094506,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["auth-server","authorization","oauth2","oauth2-server","springboot","sso"],"created_at":"2024-11-07T09:12:20.756Z","updated_at":"2026-05-19T19:02:10.021Z","avatar_url":"https://github.com/dimMaryanto93.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Security - Oauth2 SSO example\n\nBelajar Web Security dengan fitur single sign on (SSO)\n\n- Fitur Grant type Authorization code\n    \n    - request code : [klick disini](http://localhost:8080/oauth/authorize?grant_type=authorization_code\u0026client_id=client-code\u0026client_secret=123456\u0026redirectUrl=http://localhost:8080/\u0026response_type=code)\n    \n        ```bash\n        http://localhost:8080/oauth/authorize?grant_type=authorization_code\u0026client_id=client-code\u0026client_secret=123456\u0026redirectUrl=http://localhost:8080/\u0026response_type=code\n        ```\n    \n    - request token : \n    \n        ```bash \n        curl -X POST \\\n          http://localhost:8080/oauth/token \\\n          -H 'Authorization: Basic Y2xpZW50LWNvZGU6MTIzNDU2' \\\n          -H 'Cache-Control: no-cache' \\\n          -H 'Content-Type: application/x-www-form-urlencoded' \\\n          -d 'grant_type=authorization_code\u0026code=1HQ2Gh'\n        ```\n\n- Fitur Grant type Password\n\n    ```bash\n    curl -X POST \\\n      'http://localhost:8080/oauth/token?grant_type=password\u0026client_id=client-code\u0026username=user\u0026password=password' \\\n      -H 'Authorization: Basic Y2xpZW50LWNvZGU6MTIzNDU2' \\\n      -H 'Postman-Token: f2b78553-073a-46c7-8a3e-dca6ccdc1fef'\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimmaryanto93%2Fspringboot-oauth2-sso-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimmaryanto93%2Fspringboot-oauth2-sso-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimmaryanto93%2Fspringboot-oauth2-sso-example/lists"}