{"id":19681270,"url":"https://github.com/marfullsen/django-spa-cross-origin-auth","last_synced_at":"2026-06-09T13:31:19.609Z","repository":{"id":139327044,"uuid":"579037707","full_name":"Marfullsen/django-spa-cross-origin-auth","owner":"Marfullsen","description":"Simplest cross origin authentication with Django using Single Page Applications (React/Vue3).","archived":false,"fork":false,"pushed_at":"2022-12-16T14:49:38.000Z","size":502,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T07:13:41.571Z","etag":null,"topics":["auth","cookie","cross-origin"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Marfullsen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-16T13:59:24.000Z","updated_at":"2022-12-16T14:45:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"85d8c3ce-82d8-4a5f-a59c-150a611f8001","html_url":"https://github.com/Marfullsen/django-spa-cross-origin-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Marfullsen/django-spa-cross-origin-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdjango-spa-cross-origin-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdjango-spa-cross-origin-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdjango-spa-cross-origin-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdjango-spa-cross-origin-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marfullsen","download_url":"https://codeload.github.com/Marfullsen/django-spa-cross-origin-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdjango-spa-cross-origin-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34110011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["auth","cookie","cross-origin"],"created_at":"2024-11-11T18:07:24.359Z","updated_at":"2026-06-09T13:31:19.575Z","avatar_url":"https://github.com/Marfullsen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django + SPA (cross origin) Auth\n\nCookie based authentication, frontend and backend separated, cross origin.\n\nOriginal Article [here](https://testdriven.io/blog/django-spa-auth/)\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./docs/img/logged_vue.png\" alt=\"Logged Vue\"\u003e\n\u003c/div\u003e\n\n## Updated\n\n- Bug with obsolete component solved using `--openssl-legacy-provider`\n- Clon written with Vue3 added.\n\n## Getting Started\n\nOpen a console for the frontend and another one for the backend. **Keep both active to run the project.**\n\nRun Django:\n\n```sh\n$ cd backend\n$ python -m venv venv \u0026\u0026 source venv/bin/activate\n(venv)$ pip install -r requirements.txt\n(venv)$ python manage.py migrate\n(venv)$ python manage.py runserver\n```\n\n---\n\nChoose between React or Vue for the frontend.\n\nRun React:\n\n```sh\n$ cd frontend_react\n$ npm install\n$ npm start\n```\n\nTest at [http://localhost:3000/](http://localhost:3000/).\n\n**or**\n\nRun Vue:\n\n```sh\n$ cd frontend_vue\n$ npm install\n$ npm run dev\n```\n\nTest at [http://localhost:5173/](http://localhost:5173/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfullsen%2Fdjango-spa-cross-origin-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarfullsen%2Fdjango-spa-cross-origin-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfullsen%2Fdjango-spa-cross-origin-auth/lists"}