{"id":20652320,"url":"https://github.com/openpolis/social-access","last_synced_at":"2025-03-09T21:19:10.693Z","repository":{"id":8495127,"uuid":"10102315","full_name":"openpolis/social-access","owner":"openpolis","description":"Social Access component at Openpolis","archived":false,"fork":false,"pushed_at":"2013-05-16T14:46:56.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-17T10:31:05.645Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openpolis.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-16T13:56:19.000Z","updated_at":"2013-09-28T11:19:15.000Z","dependencies_parsed_at":"2022-08-25T19:52:16.937Z","dependency_job_id":null,"html_url":"https://github.com/openpolis/social-access","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/openpolis%2Fsocial-access","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fsocial-access/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fsocial-access/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fsocial-access/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openpolis","download_url":"https://codeload.github.com/openpolis/social-access/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242751677,"owners_count":20179391,"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-16T17:33:53.052Z","updated_at":"2025-03-09T21:19:10.672Z","avatar_url":"https://github.com/openpolis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=======================\nOpenpolis Social Access\n=======================\n\nThe social auth component we use at openpolis.\n\nAs of now, it is an empty django project, that can be used to add this feature to other projects.\nIt will become the single point of authentication to get into our services/api.\n\nIt uses both ``django_social_auth`` and ``django_registration``, to allow for oauth/oauth2 authentication\nthrough facebook, twitter, google, and a standard regitration/activation workflow, to register as proper users.\n\nTo add social_auth features, you need to configure some environment variables and to add or modify settings\nin the auth-providers' web sites.\n\nFacebook\n--------\n.. code-block::\n\n    FACEBOOK_APP_ID         = environ.get('FACEBOOK_APP_ID', '')\n    FACEBOOK_API_SECRET     = environ.get('FACEBOOK_API_SECRET', '')\n\n* Go to https://developers.facebook.com/apps create a new web app and get the codes from there.\n* Set ``App Domain`` to your 2nd level domain.\n* Define ``Website with Facebook Login`` (but I don't know if it's really needed).\n\n\nTwitter\n-------\n.. code-block::\n\n    TWITTER_CONSUMER_KEY    = environ.get('TWITTER_CONSUMER_KEY', '')\n    TWITTER_CONSUMER_SECRET = environ.get('TWITTER_CONSUMER_SECRET', '')\n\n* Go to https://dev.twitter.com/apps, create a new application or manage an existing one.\n* Set the ``Callback URL``.\n* Check the ``Allow this application to be used to Sign in with Twitter`` box.\n\nGoogle\n------\n.. code-block::\n\n    GOOGLE_OAUTH2_CLIENT_ID      = environ.get('GOOGLE_OAUTH2_CLIENT_ID', '')\n    GOOGLE_OAUTH2_CLIENT_SECRET  = environ.get('GOOGLE_OAUTH2_CLIENT_SECRET', '')\n\n\n* Go to https://code.google.com/apis/console/, select API Access, create a new ``Client ID`` for web applications\n* Set the ``Redirect URIs`` to http://DOMAIN/complete/google-oauth2/\n* Get ``Client ID`` and ``Client secret``","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpolis%2Fsocial-access","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenpolis%2Fsocial-access","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpolis%2Fsocial-access/lists"}