{"id":13777069,"url":"https://github.com/atmos/hancock-client","last_synced_at":"2025-04-11T06:29:14.723Z","repository":{"id":515071,"uuid":"143012","full_name":"atmos/hancock-client","owner":"atmos","description":"A sinatra app and rack middleware piece for the hancock SSO server","archived":false,"fork":false,"pushed_at":"2009-12-07T00:08:15.000Z","size":137,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-14T04:02:07.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"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/atmos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-04T17:46:38.000Z","updated_at":"2019-08-13T14:06:29.000Z","dependencies_parsed_at":"2022-07-07T18:21:03.128Z","dependency_job_id":null,"html_url":"https://github.com/atmos/hancock-client","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Fhancock-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Fhancock-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Fhancock-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Fhancock-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atmos","download_url":"https://codeload.github.com/atmos/hancock-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248354392,"owners_count":21089807,"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-08-03T18:00:37.208Z","updated_at":"2025-04-11T06:29:14.701Z","avatar_url":"https://github.com/atmos.png","language":"Ruby","funding_links":[],"categories":["Authentication","Middlewares"],"sub_categories":[],"readme":"hancock-client\n==============\n\nA gem that integrates [sinatra][sinatra] applications into the \n[Hancock SSO][hancocksso] environment.  It also doubles as rack middleware that\ncan be used in rails(\u003e= 2.3.2) and sinatra applications.\n\nDependencies\n============\n    % sudo gem install bundler\n\ntesting\n=======\nRake works for basic stuff, there's safariwatir for integration.\n\n    % gem bundle\n    % bin/rake\n\nFor the integration tests you'll need to be on a mac,\n\n    % bin/rake example\n\nApplication\n===========\nThe goal is to make it simple to write sso enabled apps.\n\n    require 'hancock-client'\n\n    class HancockClientDemo \u003c Sinatra::Default\n      set :views,  File.dirname(__FILE__) + '/views'\n      set :public, File.dirname(__FILE__) + '/public'\n\n      use Hancock::Client::Middleware do |sso|\n        sso.sso_url = 'http://hancock.atmos.org/sso'\n        sso.exclude_paths = %w(/api/)\n      end\n\n      get '/' do\n        haml(:home)\n      end\n    end\n    run HancockClientDemo\n\nFeedback\n========\n* Use the Issues Page on Github for Questions\n\n[sinatra]: http://www.sinatrarb.com\n[hancocksso]: http://www.github.com/atmos/hancock/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatmos%2Fhancock-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatmos%2Fhancock-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatmos%2Fhancock-client/lists"}