{"id":17313046,"url":"https://github.com/mpetroff/django-mediawiki-authentication","last_synced_at":"2025-04-14T14:40:51.969Z","repository":{"id":35632350,"uuid":"39906445","full_name":"mpetroff/django-mediawiki-authentication","owner":"mpetroff","description":"Fork of https://bitbucket.org/pythonian4000/django-mediawiki-authentication-by-user-id that doesn't depend on sessionprofile","archived":false,"fork":false,"pushed_at":"2017-01-02T14:46:04.000Z","size":20,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T03:32:38.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mpetroff.png","metadata":{"files":{"readme":"readme.md","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":"2015-07-29T17:22:36.000Z","updated_at":"2021-12-26T16:28:14.000Z","dependencies_parsed_at":"2022-08-17T15:55:22.121Z","dependency_job_id":null,"html_url":"https://github.com/mpetroff/django-mediawiki-authentication","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/mpetroff%2Fdjango-mediawiki-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpetroff%2Fdjango-mediawiki-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpetroff%2Fdjango-mediawiki-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpetroff%2Fdjango-mediawiki-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpetroff","download_url":"https://codeload.github.com/mpetroff/django-mediawiki-authentication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898411,"owners_count":21179772,"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-10-15T12:45:32.366Z","updated_at":"2025-04-14T14:40:51.948Z","avatar_url":"https://github.com/mpetroff.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django MediaWiki Authentication\n\nThis is a simple authentication plugin for MediaWiki that uses the Django\nauthentication app as a backend.\n\nIt requires Django 1.5.3 or later with JSON session serializer, which has been\nthe default since 1.6.\n\nCurrently tested again MediaWiki 1.27.1.\n\n## Installation\n\n* Copy `django-media-authentication/` to `extensions/` and rename to `AuthDjango/`.\n* Change the configuration variables in `AuthDjango.php` to suit your needs.\n  * `LinkToSiteLogin` should be Django's login page URL.\n  * `LinkToWiki` should be the subdirectory that the wiki is in, including the trailing `/`.\n* Give the following permissions for your MediaWiki database user:\n``GRANT SELECT ON `django_db_name`.`auth_user` TO 'wikiuser'@'localhost'``\n``GRANT SELECT, DELETE ON `django_db_name`.`django_session` TO 'wikiuser'@'localhost'``\n* Add the following line to your `LocalSettings.php`:\n`require_once('extensions/AuthDjango`/AuthDjango.php');\n* Run `update.php` to update the database schema:\n`cd ./maintenance/ \u0026\u0026 php update.php`\n\nNote that while new accounts and previous logins are linked together using\nDjango's user id, the first time a Django user goes to the wiki where they have\nan existing account the two will be linked by username. So either ensure that\nall existing MediaWiki users have the same usernames as their Django accounts\nor go through and manually add entries for their accounts into the\nnewly-created `authdjango` table in the MediaWiki database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpetroff%2Fdjango-mediawiki-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpetroff%2Fdjango-mediawiki-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpetroff%2Fdjango-mediawiki-authentication/lists"}