{"id":22808229,"url":"https://github.com/sixarm/sixarm_ruby_sign_in","last_synced_at":"2026-05-02T19:37:12.072Z","repository":{"id":920527,"uuid":"684544","full_name":"SixArm/sixarm_ruby_sign_in","owner":"SixArm","description":"SixArm.com » Ruby » SignIn abstract interface for apps","archived":false,"fork":false,"pushed_at":"2025-04-14T09:21:08.000Z","size":313,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-05T05:16:20.428Z","etag":null,"topics":["authentication","gem","rails","ruby"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-05-25T04:48:02.000Z","updated_at":"2025-04-14T09:21:12.000Z","dependencies_parsed_at":"2025-04-14T10:36:24.418Z","dependency_job_id":null,"html_url":"https://github.com/SixArm/sixarm_ruby_sign_in","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SixArm/sixarm_ruby_sign_in","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_sign_in/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_in/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32547651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["authentication","gem","rails","ruby"],"created_at":"2024-12-12T11:08:48.496Z","updated_at":"2026-05-02T19:37:12.056Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com → Ruby → \u003cbr\u003e SignIn abstract interface for apps\n\n\u003c!--header-open--\u003e\n\n[![Gem Version](https://badge.fury.io/rb/sixarm_ruby_sign_in.svg)](http://badge.fury.io/rb/sixarm_ruby_sign_in)\n[![Build Status](https://travis-ci.org/SixArm/sixarm_ruby_sign_in.png)](https://travis-ci.org/SixArm/sixarm_ruby_sign_in)\n[![Code Climate](https://api.codeclimate.com/v1/badges/cd93e8c3d46b55ca8cee/maintainability)](https://codeclimate.com/github/SixArm/sixarm_ruby_sign_in/maintainability)\n\n* Git: \u003chttps://github.com/SixArm/sixarm_ruby_sign_in\u003e\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_sign_in/doc\u003e\n* Gem: \u003chttps://rubygems.org/gems/sixarm_ruby_sign_in\u003e\n* Contact: Joel Parker Henderson, \u003cjoel@sixarm.com\u003e\n* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).\n\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nSignIn is a simple abstract framework for apps.\n\nYou can include this module in a Rails application controller,\nthen your controller can define any of these concrete methods.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_sign_in/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_sign_in\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_sign_in'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_sign_in'\n\n\u003c!--install-shut--\u003e\n\n\n## Details\n\nThis provides one top-level method:\n\n    sign_in(options=nil) =\u003e true for success, false for failure\n\nThe top level method will call mid-level methods\nthat you will define in your own controller.\n\nsign_in calls:\n\n    sign_in_attempt(options=nil), e.g. authenticate and set current user\n    sign_in_success(options=nil), e.g. redirect to a welcome page\n    sign_in_failure(options=nil), e.g. flash notice help messesage\n\n\n## AuthLogic Example\n\nAuthLogic provides this example:\n\n    def create\n      # sign in attempt\n      @user_session = UserSession.new(params[:user_session])\n      if @user_session.save\n        # sign in success\n        redirect_to account_url\n      else\n        # sign in failure\n        render :action =\u003e :new\n      end\n    end\n\nAuthLogic example refactored for improved security and structure:\n\n    def sign_in_attempt\n      @user_session = UserSession.new(params[:user_session])\n      @user_session.save\n    end\n\n    def sign_in_success\n      redirect_to account_url\n    end\n\n    def sign_in_failure\n     render :action =\u003e :new\n    end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_sign_in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_sign_in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_sign_in/lists"}