{"id":26484872,"url":"https://github.com/earaujoassis/space","last_synced_at":"2026-03-07T22:31:15.135Z","repository":{"id":48603498,"uuid":"44714237","full_name":"earaujoassis/space","owner":"earaujoassis","description":"🚀 A user management microservice; OAuth 2.0 and OIDC provider","archived":false,"fork":false,"pushed_at":"2025-07-03T21:58:44.000Z","size":2325,"stargazers_count":17,"open_issues_count":26,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T22:31:15.780Z","etag":null,"topics":["golang-application","golang-server","oauth2","oauth2-provider","oauth2-server","user-management"],"latest_commit_sha":null,"homepage":"","language":"Go","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/earaujoassis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2015-10-22T01:22:53.000Z","updated_at":"2025-07-01T07:22:52.000Z","dependencies_parsed_at":"2025-06-26T04:24:29.617Z","dependency_job_id":"6190f383-635e-48c1-812c-71ede808a072","html_url":"https://github.com/earaujoassis/space","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/earaujoassis/space","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earaujoassis","download_url":"https://codeload.github.com/earaujoassis/space/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fspace/sbom","scorecard":{"id":363777,"data":{"date":"2025-08-11","repo":{"name":"github.com/earaujoassis/space","commit":"786b55bc9f7dbb55b874089c7122ffc8d8029d2c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"Maintained","score":10,"reason":"30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:1.23.10-alpine3.22 to golang:1.23.10-alpine3.22@sha256:9a425d78a8257fc92d41ad979d38cb54005bac3fdefbdadde868e004eccbb898","Warn: goCommand not pinned by hash: Dockerfile:43","Warn: npmCommand not pinned by hash: scripts/setup.sh:7","Warn: goCommand not pinned by hash: scripts/setup.sh:10","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   2 goCommand dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2025-3829","Warn: Project is vulnerable to: GO-2025-3787 / GHSA-fv92-fjc5-jj9h","Warn: Project is vulnerable to: GO-2024-2947 / GHSA-v6v8-xj6m-xwqh","Warn: Project is vulnerable to: GO-2024-2567 / GHSA-fqpg-rq76-99pq","Warn: Project is vulnerable to: GO-2024-2606 / GHSA-mrww-27vc-gghv","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2631 / GHSA-c5q2-7r4c-mv6g","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4"],"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:24:02.397Z","repository_id":48603498,"created_at":"2025-08-18T11:24:02.397Z","updated_at":"2025-08-18T11:24:02.397Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30234481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: 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":["golang-application","golang-server","oauth2","oauth2-provider","oauth2-server","user-management"],"created_at":"2025-03-20T05:51:20.872Z","updated_at":"2026-03-07T22:31:15.003Z","avatar_url":"https://github.com/earaujoassis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Space [![CircleCI](https://dl.circleci.com/status-badge/img/gh/earaujoassis/space/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/earaujoassis/space/tree/master) [![codecov](https://codecov.io/gh/earaujoassis/space/branch/master/graph/badge.svg)](https://codecov.io/gh/earaujoassis/space) [![Go Report Card](https://goreportcard.com/badge/github.com/earaujoassis/space)](https://goreportcard.com/report/github.com/earaujoassis/space) [![Build Status](https://travis-ci.com/earaujoassis/space.svg?branch=master)](https://travis-ci.com/earaujoassis/space)\n\n\u003e A user management microservice; OAuth 2 provider\n\nSpace (formerly known as Jupiter) is an user authentication and authorisation microservice intended to be used across\nmultiple client applications. Currently, it's used to provide OAuth 2 authorisation for the\n[earaujoassis/wallet](https://github.com/earaujoassis/wallet) and [earaujoassis/postal](https://github.com/earaujoassis/postal)\nprojects. Though it is not intended to be used widely, it can be used as a reference implementation of a Golang-based\nOAuth 2 provider.\n\nIt uses [Gin](https://gin-gonic.github.io/gin/) as the Web Framework and [GORM](http://gorm.io/) for Golang's\nstructure\u0026ndash;relational mapping. Redis is used as a memory store to keep track of users' atomic and ephemeral actions\n(like the whole authorisation process under the \"Authorization Code Grant\" method, described in\n[RFC 6749, section 4.1](https://tools.ietf.org/html/rfc6749#section-4.1)). For the user's authentication process, it is\nmandatory to use Two-factor authentication (Time-based One-time Password).\n\nAdditionally, the application supports the use of Hashicorp's Vault in order to obtain configuration information and\nsecrets. It is planned to use Vault as a way to store clients keys and secrets, if the OAuth client application supports it.\n\nIt is not planned to implement all authorisation methods described in RFC 6749 but sections 4.1 and [4.3](https://tools.ietf.org/html/rfc6749#section-4.3), the \"Resource Owner Password Credentials Grant\".\n\nSpace is based on a set of [feature flags](docs/feature-gate.md) enabled/disabled through the Redis store.\n\n## Setup \u0026 running\n\nSpace is build on top of Golang and Node.js; both are manageable on top of [`asdf`](https://github.com/asdf-vm/asdf) –\na `.tool-versions` file is already provided. Space also uses Redis and Postgres as data stores – and optionally Vault.\nPlease make sure to place this project inside the `$GOPATH` (a symbolic link could solve this or\nsimply *go getting* this like `$ go get github.com/earaujoassis/space`) or to set the `GO111MODULE=on` env var. A `.env`\nfile is used to load environment information for the application – `.env` is already available. The application\nneeds a `PORT` env var in order to setup its socket (it is automatically provided by `goreman`).\n\nIn order to setup the application, additional configuration is necessary. That could be delivered through Vault or through\na local `.config.local.json` file. If you plan to use Vault, you need to fill the `.config.yml` file, according to the\n`.config.sample.yml`, and store a k/v secret according to the `.config.local.sample.json`. If you don't plan to use Vault,\njust create a `.config.local.json` file according to `.config.local.sample.json`. The application will try to load the\n`.config.local.json` by default, if it is available; otherwise, it will attempt to load it from Vault. At least one of these\nconfiguration schemes is necessary.\n\nOnce the configuration is complete, the following commands will run the server application locally:\n\n```sh\n$ yarn install \u0026\u0026 yarn build\n$ go get github.com/mattn/goreman\n$ goreman start\n$ open http://localhost:8080\n```\n\nIf you're planning to setup it for development, ideally you should run:\n\n```sh\n$ scripts/dev-setup\n$ go get github.com/mattn/goreman\n$ goreman start\n$ open http://localhost:8080\n```\n\n## Testing \u0026 Linting\n\nFor testing (plus code coverage) and linting, you could run:\n\n```sh\n$ go get -u golang.org/x/lint/golint\n$ SPACE_ENV=testing go test -race -coverprofile=c.out ./...\n$ go tool cover -html=c.out -o coverage.html\n$ golint ./...\n```\n\n## Issues\n\nIf you have any question, comment or an issue, please take a look at [/issues](https://github.com/earaujoassis/space/issues).\n\n## License\n\n[MIT License](http://earaujoassis.mit-license.org/) \u0026copy; Ewerton Carlos Assis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearaujoassis%2Fspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearaujoassis%2Fspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearaujoassis%2Fspace/lists"}