{"id":15513787,"url":"https://github.com/sebouchu/br4n","last_synced_at":"2025-10-24T11:56:23.616Z","repository":{"id":84592056,"uuid":"489409050","full_name":"SebouChu/br4n","owner":"SebouChu","description":"Br4n - Rails application \u0026 OAuth client","archived":false,"fork":false,"pushed_at":"2022-05-10T15:22:06.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T08:01:48.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/SebouChu.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":"2022-05-06T15:41:24.000Z","updated_at":"2022-05-10T15:22:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e533496-7424-46a2-8928-459edde3a81e","html_url":"https://github.com/SebouChu/br4n","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"2abb71e561cd3fb9e438c896a166c2d56ddff10f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fbr4n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fbr4n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fbr4n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fbr4n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebouChu","download_url":"https://codeload.github.com/SebouChu/br4n/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106669,"owners_count":20724400,"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":[],"created_at":"2024-10-02T09:55:11.930Z","updated_at":"2025-10-24T11:56:23.548Z","avatar_url":"https://github.com/SebouChu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Br4n\n\nRails application using [H0dor](https://github.com/SebouChu/h0dor) as identity provider through OAuth2 and OpenID Connect\n\n![br4n](https://user-images.githubusercontent.com/7761386/167664288-8b97fdde-e3dc-426a-964a-da816a8255e1.jpeg)\n\n## Setup\n\nYou need a configured [H0dor](https://github.com/SebouChu/h0dor) instance in your work environment.\n\n### Basic\n\n- Clone this repo\n- Run `bin/setup`\n- Run `yarn`\n- Install [puma-dev](https://github.com/puma/puma-dev) if you don't have it, and redirect `br4n` to port 8001\n  - `echo 8001 \u003e ~/.puma-dev/br4n`\n\n### Environment variables\n\n- Copy `config/application.yml.example` to `config/application.yml`\n- In H0dor, create an application which will use OAuth2 for authentication\n  - Attributes\n    - Redirect URI: `https://br4n.localhost/users/auth/doorkeeper/callback`\n    - Confidential: `true`\n    - Scopes: `read`\n  - Then set `DOORKEEPER_OAUTH2_APP_ID` and `DOORKEEPER_OAUTH2_APP_SECRET` with the generated UID and Secret attributes.\n- Still in H0dor, create an application which will use OAuth2 for authentication\n  - Attributes\n    - Redirect URI: `https://br4n.localhost/users/auth/openid_connect/callback`\n    - Confidential: `true`\n    - Scopes: `openid email profile`\n  - Then set `DOORKEEPER_OPENID_APP_ID` and `DOORKEEPER_OPENID_APP_SECRET` with the generated UID and Secret attributes.\n\n## Run\n\n```\nbin/dev\n```\n\nAccess it via https://br4n.localhost\n\n## Info\n\nThis Rails application uses [Devise](https://github.com/heartcombo/devise) and [OmniAuth](https://github.com/doorkeeper-gem/doorkeeper) to sign in via OAuth2 and OpenID Connect thanks to [H0dor](https://github.com/SebouChu/h0dor).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebouchu%2Fbr4n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebouchu%2Fbr4n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebouchu%2Fbr4n/lists"}