{"id":31230038,"url":"https://github.com/mfa/datasette-auth-osm","last_synced_at":"2026-01-20T16:43:04.123Z","repository":{"id":314538745,"uuid":"626077619","full_name":"mfa/datasette-auth-osm","owner":"mfa","description":"Datasette plugin that authenticates users against OpenStreetmap","archived":false,"fork":false,"pushed_at":"2025-08-08T15:47:14.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T05:33:52.788Z","etag":null,"topics":["datasette","datasette-plugin","oauth2","openstreetmap-api"],"latest_commit_sha":null,"homepage":"https://datasette-auth-osm-demo.fly.dev/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfa.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,"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-04-10T18:47:02.000Z","updated_at":"2025-08-08T15:49:45.000Z","dependencies_parsed_at":"2025-09-13T05:33:56.884Z","dependency_job_id":"b64c2e01-3b80-4ce9-9f85-50fe163a4962","html_url":"https://github.com/mfa/datasette-auth-osm","commit_stats":null,"previous_names":["mfa/datasette-auth-osm"],"tags_count":2,"template":false,"template_full_name":"simonw/datasette-plugin-template-repository","purl":"pkg:github/mfa/datasette-auth-osm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfa%2Fdatasette-auth-osm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfa%2Fdatasette-auth-osm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfa%2Fdatasette-auth-osm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfa%2Fdatasette-auth-osm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfa","download_url":"https://codeload.github.com/mfa/datasette-auth-osm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfa%2Fdatasette-auth-osm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276378346,"owners_count":25631873,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["datasette","datasette-plugin","oauth2","openstreetmap-api"],"created_at":"2025-09-22T09:28:16.288Z","updated_at":"2025-09-22T09:28:18.759Z","avatar_url":"https://github.com/mfa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datasette-auth-osm\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-auth-osm.svg)](https://pypi.org/project/datasette-auth-osm/)\n[![Tests](https://github.com/mfa/datasette-auth-osm/workflows/Test/badge.svg)](https://github.com/mfa/datasette-auth-osm/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/mfa/datasette-auth-osm/blob/main/LICENSE)\n\nDatasette plugin that authenticates users against OpenStreetMap\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n    datasette install datasette-auth-osm\n\n## Demo\n\nYou can try this out at [datasette-auth-osm-demo.fly.dev](https://datasette-auth-osm-demo.fly.dev/) - click on the top right menu icon and select \"Sign in with OpenStreetMap\".\n\n## Initial configuration\n\nFirst, create a new application in [Openstreetmap - OAuth2 Applications](https://www.openstreetmap.org/oauth2/applications).\nYou will need the client ID and client secret for that application.\n\nAdd `http://127.0.0.1:8001/-/osm-callback` to the list of Allowed Callback URLs.\n\nThen configure these plugin secrets using `metadata.yml`:\n\n```yaml\nplugins:\n  datasette-auth-osm:\n    client_id:\n      \"$env\": OSM_CLIENT_ID\n    client_secret:\n      \"$env\": OSM_CLIENT_SECRET\n```\n\nIn development, you can run Datasette and pass in environment variables like this:\n```\nOSM_CLIENT_ID=\"...client-id-goes-here...\" \\\nOSM_CLIENT_SECRET=\"...secret-goes-here...\" \\\ndatasette -m metadata.yml\n```\n\nOnce your Datasette instance is deployed, you will need to add its callback URL to the \"Allowed Callback URLs\" list your [OAuth2 application](https://www.openstreetmap.org/oauth2/applications) in OpenStreetMap.\n\nThe callback URL should be something like:\n\n    https://url-to-your-datasette/-/osm-callback\n\nExample for a permission block to only allow logged in users to see the private.db:\n``` yaml\ndatabases:\n  private:\n    allow:\n      osm_id: \"*\"\n```\nThe name of the actor field is not ``id`` as in the Datasette documentation, but ``osm_id``.\n\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n    cd datasette-auth-osm\n    python3 -m venv venv\n    source venv/bin/activate\n\nNow install the dependencies and test dependencies:\n\n    pip install -e '.[test]'\n\nTo run the tests:\n\n    pytest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfa%2Fdatasette-auth-osm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfa%2Fdatasette-auth-osm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfa%2Fdatasette-auth-osm/lists"}