{"id":13777034,"url":"https://github.com/integrity/sinatra-authorization","last_synced_at":"2025-05-11T10:31:32.101Z","repository":{"id":525894,"uuid":"154519","full_name":"integrity/sinatra-authorization","owner":"integrity","description":"HTTP Authorization helpers for Sinatra","archived":false,"fork":false,"pushed_at":"2013-12-27T13:25:56.000Z","size":133,"stargazers_count":73,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T22:24:08.701Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/integrity.png","metadata":{"files":{"readme":"README.rdoc","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}},"created_at":"2009-03-19T20:00:41.000Z","updated_at":"2025-01-11T03:27:57.000Z","dependencies_parsed_at":"2022-07-07T22:04:50.415Z","dependency_job_id":null,"html_url":"https://github.com/integrity/sinatra-authorization","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrity%2Fsinatra-authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrity%2Fsinatra-authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrity%2Fsinatra-authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrity%2Fsinatra-authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/integrity","download_url":"https://codeload.github.com/integrity/sinatra-authorization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253551796,"owners_count":21926362,"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:36.650Z","updated_at":"2025-05-11T10:31:30.467Z","avatar_url":"https://github.com/integrity.png","language":"Ruby","funding_links":[],"categories":["Authroization"],"sub_categories":[],"readme":"= Sinatra Authorization\n\nHTTP Authorization helpers for Sinatra.\n\n== Example\n\n    require \"sinatra/authorization\"\n\n    set :authorization_realm, \"Protected zone\"\n\n    helpers do\n      def authorize(login, password)\n        login == \"admin\" \u0026\u0026 password == \"secret\"\n      end\n    end\n\n    get \"/\" do\n      \"Hello\"\n    end\n\n    get \"/admin\" do\n      login_required\n\n      \"Welcome in protected zone\"\n    end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrity%2Fsinatra-authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintegrity%2Fsinatra-authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrity%2Fsinatra-authorization/lists"}