{"id":19156461,"url":"https://github.com/ess/authlogic_remote_http","last_synced_at":"2025-02-22T21:42:26.701Z","repository":{"id":624377,"uuid":"264393","full_name":"ess/authlogic_remote_http","owner":"ess","description":"This is a simple add-on for authlogic that allows authentication against a remote HTTP Basic auth location.","archived":false,"fork":false,"pushed_at":"2009-07-31T16:09:15.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T20:10:47.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ess.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG.rdoc","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-07-30T05:55:57.000Z","updated_at":"2013-10-22T23:03:42.000Z","dependencies_parsed_at":"2022-07-16T15:31:02.906Z","dependency_job_id":null,"html_url":"https://github.com/ess/authlogic_remote_http","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fauthlogic_remote_http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fauthlogic_remote_http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fauthlogic_remote_http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fauthlogic_remote_http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ess","download_url":"https://codeload.github.com/ess/authlogic_remote_http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240241803,"owners_count":19770463,"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-11-09T08:34:33.820Z","updated_at":"2025-02-22T21:42:26.675Z","avatar_url":"https://github.com/ess.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= authlogic-remote-http\n\nhttp://github.com/ess/authlogic_remote_http\n\n== DESCRIPTION:\n\nThis gem is still in development, but it's usable as it is.  It provides authlogic with the ability to auth users against a remote HTTP location that supports HTTP Basic Authentication.\n\nIt is based on the basic skeleton of pol's fork of authlogic_ldap ( http://github.com/pol/authlogic_ldap )\n\n== FEATURES/PROBLEMS:\n\n== SYNOPSIS:\n\n== REQUIREMENTS:\n\n* authlogic\n\n== INSTALL:\n\n* script/plugin install git://github.com/ess/authlogic_remote_http.git\n* optionally add remote_http user/pass columns to your user model\n* add remote_http configuration options to your user and sessions models\n\n== EXAMPLE:\n\nBefore I begin, I'd like to apologize in advance for my tone.  I'm not really one for businessworldspeak, and that tends to show muchly in my docs.\n\nMuch like authlogic itself, after you install the plugin, the rest is pretty much up to you.  If you like, you can add a remote_http_login column to your database table.  Personally, I prefer not to do so, but if you do, that's cool.\n\nAt any rate, since I'm not using these columns, my User model looks like this:\n\n  class User \u003c ActiveRecord::Base\n    acts_as_authentic do |c|\n      c.validate_remote_http_login = false\n    end\n  end\n\nI know ... it's sparse, but this is an example.  Ever notice that examples are rarely actually useful?\n\nAnyways, in order for everything to be shiny and happy, you'll need to add some configuration options to your session (UserSession in this example) model as well:\n\n  class UserSession \u003c Authlogic::Session::Base\n    remote_http_uri 'http://thefulluri.to/your/remote/auth/'\n    find_by_remote_http_login_method :find_or_create_by_login\n  end\n\nThere are a couple of things to note here.  The first is that remote_http_uri MUST be a well-formed URI.  It needs to have its scheme, a colon, a couple of slashes, a hostname, optionally a colon and a port number, another slash, and the full path to the location against which HTTP Basic auth should be performed.  If this is a directory, you're going to need the trailing slash as well.\n\nSecondly, since I've not added a remote_http_login column to my user table, I need to specify the method that should be used to check that table.  I'm pretty lazy when it comes down, so rather than taking the time to hassle the user for not already having registered, I've got my session model set up to just create the user if it doesn't already exist in the database.\n\nFrom this point, everything should Just Work (TM).  If something fails, I'd appreciate a heads-up through the issue tracker on the github repo for the add-on.\n\n== LICENSE:\n\n(The MIT License)\n\nCopyright (c) 2009 Dennis Walters, II, ( http://smurfeater.com )\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Fauthlogic_remote_http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fess%2Fauthlogic_remote_http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Fauthlogic_remote_http/lists"}