{"id":34082807,"url":"https://github.com/adelton/django-identity-external","last_synced_at":"2026-04-05T11:32:30.665Z","repository":{"id":57420428,"uuid":"89717692","full_name":"adelton/django-identity-external","owner":"adelton","description":"Django middleware for handling of external identities.","archived":false,"fork":false,"pushed_at":"2026-03-14T07:32:51.000Z","size":45,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-25T16:09:36.532Z","etag":null,"topics":["authentication","django","identity"],"latest_commit_sha":null,"homepage":"https://www.adelton.com/django/external-authentication-for-django-projects","language":"Shell","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/adelton.png","metadata":{"files":{"readme":"README","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":"2017-04-28T15:10:09.000Z","updated_at":"2026-03-14T07:32:54.000Z","dependencies_parsed_at":"2024-08-05T12:11:24.809Z","dependency_job_id":null,"html_url":"https://github.com/adelton/django-identity-external","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.2142857142857143,"last_synced_commit":"0471f4284487803326c722fdffb823ba68201edc"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/adelton/django-identity-external","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelton%2Fdjango-identity-external","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelton%2Fdjango-identity-external/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelton%2Fdjango-identity-external/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelton%2Fdjango-identity-external/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adelton","download_url":"https://codeload.github.com/adelton/django-identity-external/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelton%2Fdjango-identity-external/sbom","scorecard":{"id":166153,"data":{"date":"2025-08-11","repo":{"name":"github.com/adelton/django-identity-external","commit":"79a77fac0e930d49f30b4d6559718de21f40778e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/django-version-check.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact django-identity-external-0.7.1 not signed: https://api.github.com/repos/adelton/django-identity-external/releases/100110438","Warn: release artifact django-identity-external-0.7.1 does not have provenance: https://api.github.com/repos/adelton/django-identity-external/releases/100110438"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/adelton/django-identity-external/test.yaml/master?enable=pin","Warn: containerImage not pinned by hash: tests/Dockerfile.app:1: pin your Docker image by updating registry.fedoraproject.org/fedora to registry.fedoraproject.org/fedora@sha256:4ca434d3176ebe86179acda43559549e28c295fa406885f4f24ba94a810753b0","Warn: containerImage not pinned by hash: tests/Dockerfile.httpd:1: pin your Docker image by updating registry.fedoraproject.org/fedora to registry.fedoraproject.org/fedora@sha256:4ca434d3176ebe86179acda43559549e28c295fa406885f4f24ba94a810753b0","Warn: containerImage not pinned by hash: tests/Dockerfile.setup:1: pin your Docker image by updating docker.io/library/ubuntu:24.04 to docker.io/library/ubuntu:24.04@sha256:7c06e91f61fa88c08cc74f7e1b7c69ae24910d745357e0dfe1d2c0322aaf20f9","Warn: containerImage not pinned by hash: tests/Dockerfile.test-client:1: pin your Docker image by updating docker.io/library/ubuntu:24.04 to docker.io/library/ubuntu:24.04@sha256:7c06e91f61fa88c08cc74f7e1b7c69ae24910d745357e0dfe1d2c0322aaf20f9","Warn: pipCommand not pinned by hash: tests/Dockerfile.app:3-8","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned","Info:   0 out of   4 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-16T14:55:38.832Z","repository_id":57420428,"created_at":"2025-08-16T14:55:38.833Z","updated_at":"2025-08-16T14:55:38.833Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31434624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["authentication","django","identity"],"created_at":"2025-12-14T12:26:13.607Z","updated_at":"2026-04-05T11:32:30.647Z","avatar_url":"https://github.com/adelton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n----------------------------------------------------\n\tDjango identity.external middlewares\n----------------------------------------------------\n\nSet of middlewares to simplify consumption of external identity\ninformation in Web projects set up with Django Web framework.\n\n---------------------------------------------------\nidentity.external.PersistentRemoteUserMiddlewareVar\n\nWhen non-standard (different than REMOTE_USER) environment variable is\nused to pass information about externally authenticated user, this\nmiddleware can be used to customize the variable name without writing\nPython code.\n\nFor example, when consuming the information from some authentication\nHTTP proxy, HTTP request header values are passed as HTTP_-prefixed\nenvironment variables. If the authenticated user name is in\nX-Remote-User HTTP request header, it is available in HTTP_X_REMOTE_USER\nenvironment variable. Setting variable REMOTE_USER_VAR to\nHTTP_X_REMOTE_USER, for example with Apache HTTP Server directive\n\n\tSetEnv REMOTE_USER_VAR HTTP_X_REMOTE_USER\n\nand enabling identity.external.PersistentRemoteUserMiddlewareVar in\nMIDDLEWARE list after\ndjango.contrib.auth.middleware.AuthenticationMiddleware like\n\n\tMIDDLEWARE = [\n\t\t...\n\t\t'django.contrib.auth.middleware.AuthenticationMiddleware',\n\t\t'identity.external.PersistentRemoteUserMiddlewareVar',\n\t\t...\n\t]\n\nwill run django.contrib.auth.middleware.PersistentRemoteUserMiddleware\nwith value from environment variable HTTP_X_REMOTE_USER.\n\n------------------------------------------\nidentity.external.RemoteUserAttrMiddleware\n\nWhen user is externally authenticated, for example via\ndjango.contrib.auth.middleware.RemoteUserMiddleware or\ndjango.contrib.auth.middleware.PersistentRemoteUserMiddleware, additional\nuser attributes can be provided by the external authentication source.\n\nThis middleware will update user's email address, first and last name,\nand group membership in groups prefixed with ext: with information coming\nfrom environment variables\n\n\tREMOTE_USER_EMAIL\n\tREMOTE_USER_FIRSTNAME\n\tREMOTE_USER_LASTNAME\n\tREMOTE_USER_GROUP_N\n\tREMOTE_USER_GROUP_1, REMOTE_USER_GROUP_2, ...\n\tREMOTE_USER_GROUPS\n\nwhere the REMOTE_USER prefix of these variables can be changed with the\nREMOTE_USER_VAR environment variable, just like with\nidentity.external.PersistentRemoteUserMiddlewareVar.\n\nThe values are used verbating, as provided by Django. When\nREMOTE_USER_VALUES_ENCODING environment variable is set to base64url,\nthe values are expected to be in this format and decoded to Unicode.\n\nUsers that are in external group admins (and thus get assigned to group\next:admins in Django) will also get the is_staff flag set and thus will be\nable to log in to the admin application.\n\nThe ext: prefixed groups have to be already created in Django database for\nthe user membership to be updated in them.\n\nIn the MIDDLEWARE list, this middleware has to be listed after the\nauthenticating middleware, for example\n\n\tMIDDLEWARE = [\n\t    ...\n\t    'django.contrib.auth.middleware.AuthenticationMiddleware',\n\t    'django.contrib.auth.middleware.PersistentRemoteUserMiddleware',\n\t    'identity.external.RemoteUserAttrMiddleware',\n\t    ...\n\t]\n\n--------\nSee also\n\nExternal authentication for Django projects\nPresentation at EuroPython 2015\nhttps://www.adelton.com/django/external-authentication-for-django-projects\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadelton%2Fdjango-identity-external","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadelton%2Fdjango-identity-external","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadelton%2Fdjango-identity-external/lists"}