{"id":20713361,"url":"https://github.com/linaro/django-crowd-rest-backend","last_synced_at":"2025-04-23T08:06:07.771Z","repository":{"id":8901775,"uuid":"10624452","full_name":"Linaro/django-crowd-rest-backend","owner":"Linaro","description":"Fork of https://bitbucket.org/manuelkoch/django-crowd-rest-backend with fixes and improvements.","archived":true,"fork":false,"pushed_at":"2017-04-25T12:52:52.000Z","size":148,"stargazers_count":6,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T08:06:01.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"hightman/xunsearch","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Linaro.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":"2013-06-11T15:23:50.000Z","updated_at":"2025-04-01T11:07:45.000Z","dependencies_parsed_at":"2022-09-01T01:40:41.690Z","dependency_job_id":null,"html_url":"https://github.com/Linaro/django-crowd-rest-backend","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/Linaro%2Fdjango-crowd-rest-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linaro%2Fdjango-crowd-rest-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linaro%2Fdjango-crowd-rest-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linaro%2Fdjango-crowd-rest-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Linaro","download_url":"https://codeload.github.com/Linaro/django-crowd-rest-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395283,"owners_count":21423400,"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-11-17T02:24:50.242Z","updated_at":"2025-04-23T08:06:07.750Z","avatar_url":"https://github.com/Linaro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django authentification backend using Crowd REST API\n====================================================\n\nThis is a very rough implementation of a django backend\nusing Crowd's REST API.\n\nIt is inspired by the various forks of django-crowd-backend.\nThose implementations were always using SOUP.\nThis one is just using REST API supported by Crowd. \nSee [Atlassian](https://developer.atlassian.com/display/CROWDDEV/Crowd+REST+APIs).\n\nCurrent implementation\n======================\n\n- Connect to Crowd server\n- Authenticate given user by password\n- Sync Django user instance with attributes from Crowd user\n- Setup Djnago user staff/superuser flags based on associated Crowd groups of user\n\nFeatures\n========\n\n- HTTPS certificate validation when connecting to secure Crowd url\n\nMissing\n=======\n\n- No handling of SSO cookie\n\nDependencies\n============\n\n- just 'urllib2' with a little tweak from [VerifiedHTTPS](https://github.com/josephturnerjr/urllib2.VerifiedHTTPS)\n  to allow validation of https certificate.\n\nHow to use it\n=============\n\n- Edit settings.py to add 'crowdrest' app to your list of apps\n\n- Adapt configuration settings for crowdrest in settings.py by adding\n\t\n\t_whether you want to sync django users from Crowd attributes_\n\t\n\t\tAUTH_CROWD_ALWAYS_UPDATE_USER = True\n\n\t_whether you want to sync django groups from Crowd groups_\n\n\t\tAUTH_CROWD_ALWAYS_UPDATE_GROUPS = True\n\tIf you use any form of group-based autorization/permission checking,\n\tyou'd rather have this as True (default). In particular, AUTH_CROWD_STAFF_GROUP\n\t\u0026 AUTH_CROWD_SUPERUSER_GROUP settings depend on this.\n\n\t_whether you want to sync all user's Crowd groups into Django_\n\n\t\tAUTH_CROWD_CREATE_GROUPS = False\n\tThis setting is considered only if AUTH_CROWD_ALWAYS_UPDATE_GROUPS = True. If\n\tthis is True, then all user's groups in Crowd will be synced to Django (so,\n\teffectively, you'll be able to check Crowd group memberships using Django API).\n\tIf set to False (default), no groups will be created by backend, and only groups\n\talready existing in Django will be considered (i.e. user group membership in\n\tDjango will be updated to intersection of user's Crowd groups and all available\n\tDjango groups).\n\t\n\tyou'd rather have this as True (default). In particular, AUTH_CROWD_STAFF_GROUP\n\t\u0026 AUTH_CROWD_SUPERUSER_GROUP settings depend on this.\n    \n\t_Django user will get staff flag when Crowd user is in given Crowd group_\n\t\n\t\tAUTH_CROWD_STAFF_GROUP = 'staff'\n    \n\t_Django user will get superuser flag when Crowd user is in given Crowd group_\n\t\n\t\tAUTH_CROWD_SUPERUSER_GROUP = 'superuser'\n\tNote that superuser group member does not imply staff membership and vice\n\tversa (make sure you read Django docs to understand the difference).\n    \n\t_crowdrest will use this username and password to connect to Crowd server_\n\t\n\t\tAUTH_CROWD_APPLICATION_USER = 'django'\n\t\n\t\tAUTH_CROWD_APPLICATION_PASSWORD = 'django'\n    \n\t_URL to Crowd REST API_\n\t\n\t\tAUTH_CROWD_SERVER_REST_URI = 'http://127.0.0.1:8095/crowd/rest/usermanagement/latest'\n    \n\t_Use given certificate file to validate https connection to Crowd server_\n\t\n\t\tAUTH_CROWD_SERVER_TRUSTED_ROOT_CERTS_FILE = None\n  \nProblems ?\n==========\n\nJust send me a message. Let's see if I can help.\n\nLicense\n=======\n\nUse this code as you want. Consider it free. Say thank you. Don't blame me if it doesn't work for you.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinaro%2Fdjango-crowd-rest-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinaro%2Fdjango-crowd-rest-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinaro%2Fdjango-crowd-rest-backend/lists"}