-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Automated
committed
Apr 7, 2022
1 parent
01daffd
commit b045bc5
Showing
119 changed files
with
41,854 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
"info": { | ||
"author": "Simon Willison", | ||
"author_email": "", | ||
"bugtrack_url": null, | ||
"classifiers": [ | ||
"Framework :: Datasette", | ||
"License :: OSI Approved :: Apache Software License" | ||
], | ||
"description": "# datasette-auth0\n\n[](https://pypi.org/project/datasette-auth0/)\n[](https://github.com/simonw/datasette-auth0/releases)\n[](https://github.com/simonw/datasette-auth0/actions?query=workflow%3ATest)\n[](https://github.com/simonw/datasette-auth0/blob/main/LICENSE)\n\nDatasette plugin that authenticates users using [Auth0](https://auth0.com/)\n\nSee [Simplest possible OAuth authentication with Auth0](https://til.simonwillison.net/auth0/oauth-with-auth0) for more about how this plugin works.\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n $ datasette install datasette-auth0\n\n## Demo\n\nYou can try this out at [datasette-auth0-demo.datasette.io](https://datasette-auth0-demo.datasette.io/) - click on the top right menu icon and select \"Sign in with Auth0\".\n\n## Initial configuration\n\nFirst, create a new application in Auth0. You will need the domain, client ID and client secret for that application.\n\nThe domain should be something like `mysite.us.auth0.com`.\n\nAdd `http://127.0.0.1:8001/-/auth0-callback` to the list of Allowed Callback URLs.\n\nThen configure these plugin secrets using `metadata.yml`:\n\n```yaml\nplugins:\n datasette-auth0:\n domain:\n \"$env\": AUTH0_DOMAIN\n client_id:\n \"$env\": AUTH0_CLIENT_ID\n client_secret:\n \"$env\": AUTH0_CLIENT_SECRET\n```\nOnly the `client_secret` needs to be kept secret, but for consistency I recommend using the `$env` mechanism for all three.\n\nIn development, you can run Datasette and pass in environment variables like this:\n```\nAUTH0_DOMAIN=\"your-domain.us.auth0.com\" \\\nAUTH0_CLIENT_ID=\"...client-id-goes-here...\" \\\nAUTH0_CLIENT_SECRET=\"...secret-goes-here...\" \\\ndatasette -m metadata.yml\n```\n\nIf you are deploying using `datasette publish` you can pass these using `--plugin-secret`. For example, to deploy using Cloud Run you might run the following:\n```\ndatasette publish cloudrun mydatabase.db \\\n--install datasette-auth0 \\\n--plugin-secret datasette-auth0 domain \"your-domain.us.auth0.com\" \\\n--plugin-secret datasette-auth0 client_id \"your-client-id\" \\\n--plugin-secret datasette-auth0 client_secret \"your-client-secret\" \\\n--service datasette-auth0-demo\n```\nOnce your Datasette instance is deployed, you will need to add its callback URL to the \"Allowed Callback URLs\" list in Auth0.\n\nThe callback URL should be something like:\n\n https://url-to-your-datasette/-/auth0-callback\n\n## Usage\n\nOnce installed, a \"Sign in with Auth0\" menu item will appear in the Datasette main menu.\n\nYou can sign in and then visit the `/-/actor` page to see full details of the `auth0` profile that has been authenticated.\n\nYou can then use [Datasette permissions](https://docs.datasette.io/en/stable/authentication.html#configuring-permissions-in-metadata-json) to grant or deny access to different parts of Datasette based on the authenticated user.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n cd datasette-auth0\n python3 -mvenv 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\n\n", | ||
"description_content_type": "text/markdown", | ||
"docs_url": null, | ||
"download_url": "", | ||
"downloads": { | ||
"last_day": -1, | ||
"last_month": -1, | ||
"last_week": -1 | ||
}, | ||
"home_page": "https://github.com/simonw/datasette-auth0", | ||
"keywords": "", | ||
"license": "Apache License, Version 2.0", | ||
"maintainer": "", | ||
"maintainer_email": "", | ||
"name": "datasette-auth0", | ||
"package_url": "https://pypi.org/project/datasette-auth0/", | ||
"platform": null, | ||
"project_url": "https://pypi.org/project/datasette-auth0/", | ||
"project_urls": { | ||
"CI": "https://github.com/simonw/datasette-auth0/actions", | ||
"Changelog": "https://github.com/simonw/datasette-auth0/releases", | ||
"Homepage": "https://github.com/simonw/datasette-auth0", | ||
"Issues": "https://github.com/simonw/datasette-auth0/issues" | ||
}, | ||
"release_url": "https://pypi.org/project/datasette-auth0/0.1/", | ||
"requires_dist": [ | ||
"datasette", | ||
"pytest ; extra == 'test'", | ||
"pytest-asyncio ; extra == 'test'", | ||
"pytest-httpx ; extra == 'test'" | ||
], | ||
"requires_python": ">=3.7", | ||
"summary": "Datasette plugin that authenticates users using Auth0", | ||
"version": "0.1", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
"last_serial": 13317202, | ||
"releases": { | ||
"0.1": [ | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "e43b054211e99997f878f62b642f98a9", | ||
"sha256": "371d1f36f636907f26389a5e1e2ebf7d792cc6be1ee31c75e6b6521bd7a8375e" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette_auth0-0.1-py3-none-any.whl", | ||
"has_sig": false, | ||
"md5_digest": "e43b054211e99997f878f62b642f98a9", | ||
"packagetype": "bdist_wheel", | ||
"python_version": "py3", | ||
"requires_python": ">=3.7", | ||
"size": 8462, | ||
"upload_time": "2022-03-28T03:06:01", | ||
"upload_time_iso_8601": "2022-03-28T03:06:01.371137Z", | ||
"url": "https://files.pythonhosted.org/packages/e8/9a/efbbf636371f05bacbd6800deea2eb81f889887baa8765a822aa465d518e/datasette_auth0-0.1-py3-none-any.whl", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "8de771bfed1723d16f07504f79305363", | ||
"sha256": "e85e7dd2a23534b5a8b8578d8389576c67e6cc6195dbdab517a6da2a2a9a12c5" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette-auth0-0.1.tar.gz", | ||
"has_sig": false, | ||
"md5_digest": "8de771bfed1723d16f07504f79305363", | ||
"packagetype": "sdist", | ||
"python_version": "source", | ||
"requires_python": ">=3.7", | ||
"size": 8008, | ||
"upload_time": "2022-03-28T03:06:02", | ||
"upload_time_iso_8601": "2022-03-28T03:06:02.500572Z", | ||
"url": "https://files.pythonhosted.org/packages/31/f5/ad9f4cc2f940b72992020cfc9e656cc0c1393fbd42e32dee677a84af2711/datasette-auth0-0.1.tar.gz", | ||
"yanked": false, | ||
"yanked_reason": null | ||
} | ||
], | ||
"0.1a0": [ | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "be1e349cf7a7bacc4ed7c29823691fa0", | ||
"sha256": "6d48d5252d6b2446db4bfd9eab61ded7776ed616a9595acab1613b627ad4ba3a" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette_auth0-0.1a0-py3-none-any.whl", | ||
"has_sig": false, | ||
"md5_digest": "be1e349cf7a7bacc4ed7c29823691fa0", | ||
"packagetype": "bdist_wheel", | ||
"python_version": "py3", | ||
"requires_python": ">=3.7", | ||
"size": 8388, | ||
"upload_time": "2022-03-26T21:22:12", | ||
"upload_time_iso_8601": "2022-03-26T21:22:12.271648Z", | ||
"url": "https://files.pythonhosted.org/packages/2d/09/311ba725556a80b52d53f13c6ee1f40e58a9944ee8d34f9d5bb91c852550/datasette_auth0-0.1a0-py3-none-any.whl", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "1987c8860c90594ba8fffad82f3e383d", | ||
"sha256": "b20f176b69e965ff793022021ded5b86c0944e0a18c240c9194089aa5084a0bb" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette-auth0-0.1a0.tar.gz", | ||
"has_sig": false, | ||
"md5_digest": "1987c8860c90594ba8fffad82f3e383d", | ||
"packagetype": "sdist", | ||
"python_version": "source", | ||
"requires_python": ">=3.7", | ||
"size": 7915, | ||
"upload_time": "2022-03-26T21:22:13", | ||
"upload_time_iso_8601": "2022-03-26T21:22:13.678857Z", | ||
"url": "https://files.pythonhosted.org/packages/1f/91/cccb17bef1f37c513aa552b8034626e5c582b2626c2a0abcb15aa6709c69/datasette-auth0-0.1a0.tar.gz", | ||
"yanked": false, | ||
"yanked_reason": null | ||
} | ||
] | ||
}, | ||
"urls": [ | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "e43b054211e99997f878f62b642f98a9", | ||
"sha256": "371d1f36f636907f26389a5e1e2ebf7d792cc6be1ee31c75e6b6521bd7a8375e" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette_auth0-0.1-py3-none-any.whl", | ||
"has_sig": false, | ||
"md5_digest": "e43b054211e99997f878f62b642f98a9", | ||
"packagetype": "bdist_wheel", | ||
"python_version": "py3", | ||
"requires_python": ">=3.7", | ||
"size": 8462, | ||
"upload_time": "2022-03-28T03:06:01", | ||
"upload_time_iso_8601": "2022-03-28T03:06:01.371137Z", | ||
"url": "https://files.pythonhosted.org/packages/e8/9a/efbbf636371f05bacbd6800deea2eb81f889887baa8765a822aa465d518e/datasette_auth0-0.1-py3-none-any.whl", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "8de771bfed1723d16f07504f79305363", | ||
"sha256": "e85e7dd2a23534b5a8b8578d8389576c67e6cc6195dbdab517a6da2a2a9a12c5" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette-auth0-0.1.tar.gz", | ||
"has_sig": false, | ||
"md5_digest": "8de771bfed1723d16f07504f79305363", | ||
"packagetype": "sdist", | ||
"python_version": "source", | ||
"requires_python": ">=3.7", | ||
"size": 8008, | ||
"upload_time": "2022-03-28T03:06:02", | ||
"upload_time_iso_8601": "2022-03-28T03:06:02.500572Z", | ||
"url": "https://files.pythonhosted.org/packages/31/f5/ad9f4cc2f940b72992020cfc9e656cc0c1393fbd42e32dee677a84af2711/datasette-auth0-0.1.tar.gz", | ||
"yanked": false, | ||
"yanked_reason": null | ||
} | ||
], | ||
"vulnerabilities": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
{ | ||
"info": { | ||
"author": "Simon Willison", | ||
"author_email": "", | ||
"bugtrack_url": null, | ||
"classifiers": [], | ||
"description": "# datasette-backup\n\n[](https://pypi.org/project/datasette-backup/)\n[](https://github.com/simonw/datasette-backup/releases)\n[](https://github.com/simonw/datasette-backup/actions?query=workflow%3ATest)\n[](https://github.com/simonw/datasette-backup/blob/main/LICENSE)\n\nPlugin adding backup options to Datasette\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n $ datasette install datasette-backup\n\n## Usage\n\nOnce installed, you can download a SQL backup of any of your databases from:\n\n /-/backup/dbname.sql\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n cd datasette-backup\n python3 -mvenv venv\n source venv/bin/activate\n\nOr if you are using `pipenv`:\n\n pipenv shell\n\nNow install the dependencies and tests:\n\n pip install -e '.[test]'\n\nTo run the tests:\n\n pytest\n\n\n", | ||
"description_content_type": "text/markdown", | ||
"docs_url": null, | ||
"download_url": "", | ||
"downloads": { | ||
"last_day": -1, | ||
"last_month": -1, | ||
"last_week": -1 | ||
}, | ||
"home_page": "https://github.com/simonw/datasette-backup", | ||
"keywords": "", | ||
"license": "Apache License, Version 2.0", | ||
"maintainer": "", | ||
"maintainer_email": "", | ||
"name": "datasette-backup", | ||
"package_url": "https://pypi.org/project/datasette-backup/", | ||
"platform": "", | ||
"project_url": "https://pypi.org/project/datasette-backup/", | ||
"project_urls": { | ||
"CI": "https://github.com/simonw/datasette-backup/actions", | ||
"Changelog": "https://github.com/simonw/datasette-backup/releases", | ||
"Homepage": "https://github.com/simonw/datasette-backup", | ||
"Issues": "https://github.com/simonw/datasette-backup/issues" | ||
}, | ||
"release_url": "https://pypi.org/project/datasette-backup/0.1/", | ||
"requires_dist": [ | ||
"datasette", | ||
"sqlite-dump (>=0.1.1)", | ||
"pytest ; extra == 'test'", | ||
"pytest-asyncio ; extra == 'test'", | ||
"httpx ; extra == 'test'", | ||
"sqlite-utils ; extra == 'test'" | ||
], | ||
"requires_python": "", | ||
"summary": "Plugin adding backup options to Datasette", | ||
"version": "0.1", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
"last_serial": 8127132, | ||
"releases": { | ||
"0.1": [ | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "9e564118e26ac15414bb2006ceb3e520", | ||
"sha256": "b8108d0896f5c394f0b6b8828e0ba948a3370c053eb58c3e01856341dfa5b33e" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette_backup-0.1-py3-none-any.whl", | ||
"has_sig": false, | ||
"md5_digest": "9e564118e26ac15414bb2006ceb3e520", | ||
"packagetype": "bdist_wheel", | ||
"python_version": "py3", | ||
"requires_python": null, | ||
"size": 2795, | ||
"upload_time": "2020-09-07T02:28:28", | ||
"upload_time_iso_8601": "2020-09-07T02:28:28.712755Z", | ||
"url": "https://files.pythonhosted.org/packages/a4/be/5e982dc4251e44ee6c78e786d4958650bc0ae470112338c5c8fe6243e5e5/datasette_backup-0.1-py3-none-any.whl", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "aefb0e90cdba8fc3810566bb938ba1e1", | ||
"sha256": "e9dde717e66b061769fb325475be30352d405c53cdcc44114c2664be876907bf" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette-backup-0.1.tar.gz", | ||
"has_sig": false, | ||
"md5_digest": "aefb0e90cdba8fc3810566bb938ba1e1", | ||
"packagetype": "sdist", | ||
"python_version": "source", | ||
"requires_python": null, | ||
"size": 2643, | ||
"upload_time": "2020-09-07T02:28:29", | ||
"upload_time_iso_8601": "2020-09-07T02:28:29.451381Z", | ||
"url": "https://files.pythonhosted.org/packages/11/26/c2d817284cad97f600e9bff12abafb07dc0c35e02724f9a92eb496b3bf58/datasette-backup-0.1.tar.gz", | ||
"yanked": false, | ||
"yanked_reason": null | ||
} | ||
], | ||
"0.1a0": [ | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "8ff1662be8d2d48fb99edc39eb3ba615", | ||
"sha256": "1342b866e92bd66b1ec6b6bb5fdadc8829f84c9625852c26ba5f4299969522a5" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette_backup-0.1a0-py3-none-any.whl", | ||
"has_sig": false, | ||
"md5_digest": "8ff1662be8d2d48fb99edc39eb3ba615", | ||
"packagetype": "bdist_wheel", | ||
"python_version": "py3", | ||
"requires_python": null, | ||
"size": 2762, | ||
"upload_time": "2020-09-06T07:23:54", | ||
"upload_time_iso_8601": "2020-09-06T07:23:54.590623Z", | ||
"url": "https://files.pythonhosted.org/packages/9e/08/b4954eb1810f76b4e750d57efcaaf8d1cfe1f3043eb97a04214ccdd28349/datasette_backup-0.1a0-py3-none-any.whl", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "7d99daf4fe2b714ffb847b3019b24a75", | ||
"sha256": "0869b357763096071f24196363419a85aff5e701fa0fd338fed20eecc87dd9ff" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette-backup-0.1a0.tar.gz", | ||
"has_sig": false, | ||
"md5_digest": "7d99daf4fe2b714ffb847b3019b24a75", | ||
"packagetype": "sdist", | ||
"python_version": "source", | ||
"requires_python": null, | ||
"size": 2591, | ||
"upload_time": "2020-09-06T07:23:56", | ||
"upload_time_iso_8601": "2020-09-06T07:23:56.516038Z", | ||
"url": "https://files.pythonhosted.org/packages/81/f0/c6d58f9c4354d8a54be17b5280e5f19a17a2a7a6e6bd2b45fe7ad992b557/datasette-backup-0.1a0.tar.gz", | ||
"yanked": false, | ||
"yanked_reason": null | ||
} | ||
] | ||
}, | ||
"urls": [ | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "9e564118e26ac15414bb2006ceb3e520", | ||
"sha256": "b8108d0896f5c394f0b6b8828e0ba948a3370c053eb58c3e01856341dfa5b33e" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette_backup-0.1-py3-none-any.whl", | ||
"has_sig": false, | ||
"md5_digest": "9e564118e26ac15414bb2006ceb3e520", | ||
"packagetype": "bdist_wheel", | ||
"python_version": "py3", | ||
"requires_python": null, | ||
"size": 2795, | ||
"upload_time": "2020-09-07T02:28:28", | ||
"upload_time_iso_8601": "2020-09-07T02:28:28.712755Z", | ||
"url": "https://files.pythonhosted.org/packages/a4/be/5e982dc4251e44ee6c78e786d4958650bc0ae470112338c5c8fe6243e5e5/datasette_backup-0.1-py3-none-any.whl", | ||
"yanked": false, | ||
"yanked_reason": null | ||
}, | ||
{ | ||
"comment_text": "", | ||
"digests": { | ||
"md5": "aefb0e90cdba8fc3810566bb938ba1e1", | ||
"sha256": "e9dde717e66b061769fb325475be30352d405c53cdcc44114c2664be876907bf" | ||
}, | ||
"downloads": -1, | ||
"filename": "datasette-backup-0.1.tar.gz", | ||
"has_sig": false, | ||
"md5_digest": "aefb0e90cdba8fc3810566bb938ba1e1", | ||
"packagetype": "sdist", | ||
"python_version": "source", | ||
"requires_python": null, | ||
"size": 2643, | ||
"upload_time": "2020-09-07T02:28:29", | ||
"upload_time_iso_8601": "2020-09-07T02:28:29.451381Z", | ||
"url": "https://files.pythonhosted.org/packages/11/26/c2d817284cad97f600e9bff12abafb07dc0c35e02724f9a92eb496b3bf58/datasette-backup-0.1.tar.gz", | ||
"yanked": false, | ||
"yanked_reason": null | ||
} | ||
], | ||
"vulnerabilities": [] | ||
} |
Oops, something went wrong.