{"id":35640910,"url":"https://github.com/wso2/identity-customer-data-service","last_synced_at":"2026-03-09T06:03:43.513Z","repository":{"id":286807154,"uuid":"962621385","full_name":"wso2/identity-customer-data-service","owner":"wso2","description":"Lightweight, extensible Customer Data Server built to power personalized experiences through unified user profiles and behavior insights.","archived":false,"fork":false,"pushed_at":"2026-03-04T12:26:16.000Z","size":33509,"stargazers_count":0,"open_issues_count":57,"forks_count":7,"subscribers_count":43,"default_branch":"main","last_synced_at":"2026-03-04T19:40:24.007Z","etag":null,"topics":["customer-data","iam"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/wso2.png","metadata":{"files":{"readme":"README.md","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":"2025-04-08T12:33:00.000Z","updated_at":"2026-03-04T12:26:21.000Z","dependencies_parsed_at":"2025-05-09T15:37:19.528Z","dependency_job_id":"501d4376-fd89-4396-b77e-9c315343fab6","html_url":"https://github.com/wso2/identity-customer-data-service","commit_stats":null,"previous_names":["wso2/identity-customer-data-service"],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/wso2/identity-customer-data-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fidentity-customer-data-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fidentity-customer-data-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fidentity-customer-data-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fidentity-customer-data-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wso2","download_url":"https://codeload.github.com/wso2/identity-customer-data-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fidentity-customer-data-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30284633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":["customer-data","iam"],"created_at":"2026-01-05T11:19:18.198Z","updated_at":"2026-03-09T06:03:43.494Z","avatar_url":"https://github.com/wso2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# identity-customer-data-service\nLightweight, extensible Customer Data Server built to power personalized experiences through unified user profiles and behavior insights.\n\n# ⚡ Quickstart\n\n### ✅ Prerequisites\n\n- Go 1.23+\n- Docker\n- cURL\n\n---\n### 🛠️ Configuration Steps\n\n1. Register an M2M Application\n    - Go to WSO2 Identity Server Console.\n    - Create a Machine-to-Machine application.\n    - Under **Api Resources** section:\n        - Subscribe to Claim Management APIs.\n    - Under **Protocol** section\n        - Copy the Client ID and Client Secret.\n        - Select JWT as Access Token type.\n        - Add \"iam-cds\" to the Audience.\n\n2. Create an Admin user\n    - Go to WSO2 Identity Server Console .\n    - Navigate to User Management section --\u003e Users.\n    - Create the user. Copy username and password\n    - Navigate to Console Settings\n        - Add administrator\n\n3. Create the Environment File\n    - Create a **dev.env** file under conf/repository/config/:\n        - paste the Client secret copied\n      ```bash\n         ENV=dev\n         LOG_LEVEL=DEBUG\n         AUTH_SERVER_CLIENT_SECRET=\u003cyour_client_secret\u003e\n         AUTH_SERVER_ADMIN_PASSWORD=\u003cyour_admin_password\u003e\n      ```\n\n4. Create Application that you want to use to access these APIs from\n    - Register applications you want to integrate with the CDS.\n    - Subscribe to required APIs from **API Resources** section:\n        - Profiles\n        - Profile Schema\n        - Unification Rules\n        - Consent Management\n\n5. Obtain token against the application\n    - Include required scopes for your use case.\n    - required_scopes:\n        - profile:create: \"internal_cdm_profile_create\"\n        - profile:update: \"internal_cdm_profile_update\"\n        - profile:view: \"internal_cdm_profile_view\"\n        - profile:delete: \"internal_cdm_profile_delete\"\n\n        - unification_rules:view: \"internal_cdm_unification_rule_view\"\n        - unification_rules:create: \"internal_cdm_unification_rule_create\"\n        - unification_rules:update: \"internal_cdm_unification_rule_update\"\n        - unification_rules:delete: \"internal_cdm_unification_rule_delete\"\n\n        - profile_schema:view: \"internal_cdm_profile_schema_view\"\n        - profile_schema:create: \"internal_cdm_profile_schema_create\"\n        - profile_schema:update: \"internal_cdm_profile_schema_update\"\n        - profile_schema:delete: \"internal_cdm_profile_schema_delete\"\n\n🎯 Include only the scopes you need in your token request.\n\n```bash\n`curl --location 'https://localhost:9443/oauth2/token' \\\n--header 'Authorization: Basic \u003cBase64Encoded(CLIENT_ID:CLIENT_SECRET)\u003e' \\\n--header 'Content-Type: application/x-www-form-urlencoded' \\\n--data-urlencode 'grant_type=client_credentials' \\\n--data-urlencode 'scope=internal_cdm_profile_update internal_cdm_profile_delete internal_cdm_profile_view internal_cdm_profile_create '`\n```\n\n6. Use the token obtained from token request call in Authorization header when calling CDM APIs.\n\n`Authorization: Bearer \u003caccess_token\u003e\n`\n\n---\n## 🏗 Build and Run\n### 🔧 Step 1: Start PostgreSQL\n\n```bash\ndocker run -d -p 5432:5432 --name postgres \\\n  -e POSTGRES_USER=cdsuser \\\n  -e POSTGRES_PASSWORD=cdspwd \\\n  -e POSTGRES_DB=cdsdb \\\n  postgres\n```\n\n### 🗂 Step 2: Initialize the Database\n\n```bash\ndocker exec -i postgres psql -U cdsuser -d cdspwd \u003c dbscripts/postgress.sql\n```\n\n---\n\n### 🛠 Step 3: Build the Product\n\n```bash\nmake all\n```\n\n---\n\n### ▶️ Step 4: Run the Product\n\n```bash\ncd target\nunzip cds-1.0.0-m1-SNAPSHOT.zip\ncd cds-1.0.0-m1-SNAPSHOT\n./cds\n```\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwso2%2Fidentity-customer-data-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwso2%2Fidentity-customer-data-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwso2%2Fidentity-customer-data-service/lists"}