{"id":37134564,"url":"https://github.com/dxps/s2s_auth_srv","last_synced_at":"2026-01-14T15:42:11.144Z","repository":{"id":104279338,"uuid":"384111633","full_name":"dxps/s2s_auth_srv","owner":"dxps","description":"A minimal OAuth2 Server that supports Client Credentials Flow, plus a small and specific use case.","archived":false,"fork":false,"pushed_at":"2021-07-15T09:56:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T22:07:33.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/dxps.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":"2021-07-08T12:07:26.000Z","updated_at":"2021-07-15T09:56:29.000Z","dependencies_parsed_at":"2023-03-13T14:59:25.852Z","dependency_job_id":null,"html_url":"https://github.com/dxps/s2s_auth_srv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dxps/s2s_auth_srv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxps%2Fs2s_auth_srv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxps%2Fs2s_auth_srv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxps%2Fs2s_auth_srv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxps%2Fs2s_auth_srv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxps","download_url":"https://codeload.github.com/dxps/s2s_auth_srv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxps%2Fs2s_auth_srv/sbom","scorecard":{"id":361864,"data":{"date":"2025-08-11","repo":{"name":"github.com/dxps/s2s_auth_srv","commit":"b7fbc84eeb5ec4d74fc7df3af7afaf0e5df7208b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3553 / GHSA-mh63-6h87-95cp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T11:03:13.566Z","repository_id":104279338,"created_at":"2025-08-18T11:03:13.566Z","updated_at":"2025-08-18T11:03:13.566Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T15:42:10.401Z","updated_at":"2026-01-14T15:42:11.137Z","avatar_url":"https://github.com/dxps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Service-to-Service OAuth2 Auth Server\n\nThis sample supports OAuth2 Client Credentials Flow, relevant for service to service comm.\n\n\u003cbr/\u003e\n\n### Usage\n\nCreate/get a set of credentials:\n\n```shell\n$ curl http://localhost:9096/credentials\n{\"CLIENT_ID\":\"da374969\",\"CLIENT_SECRET\":\"a71ba2f0\"}\n$\n```\n\nAuthenticate to get an access token:\n\n```shell\n$ curl 'http://localhost:9096/token?grant_type=client_credentials\u0026client_id=da374969\u0026client_secret=a71ba2f0'\n{\n    \"access_token\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI3M2RlNGViMCIsImV4cCI6MTYyNTc2MDE2NH0.bAsWHqwmmrk22BisWWkfDicQXnvLdkG7RVm5Y6ITWzC7fyz8fMFsYHnHwGnMWG66OyPaVgAVGLVLgzEEJtijEw\",\n    \"expires_in\":7200,\n    \"token_type\":\"Bearer\"\n}\n$\n```\n\nAccording to OAuth2 spec ([section 2.3.1](https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1)), this is actually not recommended:\n\n\u003e Including the client credentials in the request-body using the two\n\u003e parameters is NOT RECOMMENDED and SHOULD be limited to clients unable\n\u003e to directly utilize the HTTP Basic authentication scheme (or other\n\u003e password-based HTTP authentication schemes).\n\nAnd considering [section 4.4](https://datatracker.ietf.org/doc/html/rfc6749#section-4.4), the request and response should look as follows. There is no statement saying that request should not include additional params in the body.\n\n- Request:\n\n  ```\n  POST /token HTTP/1.1\n  Host: server.example.com\n  Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW\n  Content-Type: application/x-www-form-urlencoded\n\n  grant_type=client_credentials\n  ```\n\n- Response:\n\n  ```\n  HTTP/1.1 200 OK\n  Content-Type: application/json;charset=UTF-8\n  Cache-Control: no-store\n  Pragma: no-cache\n\n  {\n    \"access_token\":\"2YotnFZFEjr1zCsicMWpAA\",\n    \"token_type\":\"example\",\n    \"expires_in\":3600,\n    \"example_parameter\":\"example_value\"\n  }\n  ```\n\n\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxps%2Fs2s_auth_srv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxps%2Fs2s_auth_srv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxps%2Fs2s_auth_srv/lists"}