{"id":40291308,"url":"https://github.com/sleepingkingstudios/librum-iam","last_synced_at":"2026-01-20T04:38:10.186Z","repository":{"id":177103179,"uuid":"658880571","full_name":"sleepingkingstudios/librum-iam","owner":"sleepingkingstudios","description":"Librum engine defining authentication and authorization.","archived":false,"fork":false,"pushed_at":"2025-11-02T23:40:14.000Z","size":205,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-03T00:08:34.777Z","etag":null,"topics":["ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sleepingkingstudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-26T17:20:21.000Z","updated_at":"2025-11-02T23:40:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d864feb-06f3-47f5-9402-c0cfaca87645","html_url":"https://github.com/sleepingkingstudios/librum-iam","commit_stats":null,"previous_names":["sleepingkingstudios/librum-iam"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sleepingkingstudios/librum-iam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepingkingstudios%2Flibrum-iam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepingkingstudios%2Flibrum-iam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepingkingstudios%2Flibrum-iam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepingkingstudios%2Flibrum-iam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sleepingkingstudios","download_url":"https://codeload.github.com/sleepingkingstudios/librum-iam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepingkingstudios%2Flibrum-iam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":["ruby","ruby-on-rails"],"created_at":"2026-01-20T04:38:10.118Z","updated_at":"2026-01-20T04:38:10.181Z","avatar_url":"https://github.com/sleepingkingstudios.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Librum::Iam\n\nThe IAM engine for the Librum application framework. Defines models, controllers, and middleware for authenticating and authorizing requests.\n\n## License\n\nThe gem is available as open source software under the terms of the [GNU General Public License version 3](https://opensource.org/license/gpl-3-0/).\n\n## Installation\n\n1. Add the engine to the Gemfile:\n\n    ```ruby\n    # In Gemfile.rb\n\n    gem 'librum-iam'\n    ```\n\n2. Install and run the migrations.\n\n    ```bash\n    bundle exec rails librum_iam:install:migrations\n    bundle exec rake db:migrate\n    ```\n\n3. Set up the Sessions routes:\n\n    ```ruby\n    # In routes.rb\n\n    scope :authentication, as: 'authentication' do\n      resource :session,\n        controller: 'librum/iam/view/sessions',\n        only:       %i[create destroy]\n    end\n    ```\n\n4. Configure `Librum::Iam` with the session path:\n\n    ```ruby\n    # In config/initializers/librum_iam.rb\n\n    Rails.application.config.before_initialize do |app|\n      app.config.authentication_session_path = '/authentication/session'\n    end\n    ```\n\n5. (Optional) Define a `\"login\"` layout:\n\n    ```html\n    \u003c!-- In app/views/layouts/login.html.erb --\u003e\n\n    \u003cp\u003eYou are not currently logged in.\u003c/p\u003e\n\n    \u003c%= render template: \"layouts/application\" %\u003e\n    ```\n\n6. (Optional) Add Thor tasks:\n\n    ```ruby\n    # In tasks.thor\n\n    require_relative 'config/environment'\n\n    load 'librum/iam/tasks.thor'\n    ```\n\n7. (Optional) Create a new root user:\n\n    ```bash\n    bundle exec thor librum:iam:create_root_user\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleepingkingstudios%2Flibrum-iam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsleepingkingstudios%2Flibrum-iam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleepingkingstudios%2Flibrum-iam/lists"}