{"id":19879960,"url":"https://github.com/nextmcloud/nmc_marketing","last_synced_at":"2026-03-03T01:36:59.134Z","repository":{"id":154998707,"uuid":"626857294","full_name":"nextmcloud/nmc_marketing","owner":"nextmcloud","description":"To add custom CSP rules specific to Next Magenta Cloud application","archived":false,"fork":false,"pushed_at":"2025-03-12T09:42:09.000Z","size":427,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T00:22:51.730Z","etag":null,"topics":["contentsecuritypolicy","magentacloud"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextmcloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2023-04-12T09:48:38.000Z","updated_at":"2025-03-11T11:06:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"907b7dd4-3c05-459c-854d-8495ba895247","html_url":"https://github.com/nextmcloud/nmc_marketing","commit_stats":{"total_commits":44,"total_committers":7,"mean_commits":6.285714285714286,"dds":0.75,"last_synced_commit":"ce6cef0af83277cdce0b37d65b43d51f5040fbf5"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/nextmcloud/nmc_marketing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextmcloud%2Fnmc_marketing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextmcloud%2Fnmc_marketing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextmcloud%2Fnmc_marketing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextmcloud%2Fnmc_marketing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextmcloud","download_url":"https://codeload.github.com/nextmcloud/nmc_marketing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextmcloud%2Fnmc_marketing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275820538,"owners_count":25534815,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"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":["contentsecuritypolicy","magentacloud"],"created_at":"2024-11-12T17:09:52.116Z","updated_at":"2025-09-18T19:32:41.043Z","avatar_url":"https://github.com/nextmcloud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nmc_marketing\n\nWe have shown consent layer as soon as the login page opens. For telecom login and admin login consent layer shown . We are getting some errors in browser console regarding content security which blocking functionality. Cookies not getting set after consent layer acceptance .\nTo solve this issue NMC Marketing app developed which will add csp rules\n\n\n### Enabling APP\n\nFrom settings app search for NMC marketing app and enable it.\n\n### Config Changes\n\nAdd below in server config\n\n'trusted_font_urls'=\u003earray(0 =\u003e 'https://ebs10.telekom.de/opt-in/',),\n'trusted_image_urls'=\u003earray(0 =\u003e 'https://pix.telekom.de/',1=\u003e'http://fbc.wcfbc.net/',)\n\n```php\n// config/config.php\n    ...,\n    // In order to deactivate the consent layer for the mobile clients we have to configure the identifiable user agents of those clients\n    'nmc_marketing.mobile_user_agents' =\u003e [\n        '/^Mozilla\\/5\\.0 \\(Android\\) Nextcloud\\-android\\/(?\u003cversion\u003e(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)).*$/',\n        '/^Mozilla\\/5\\.0 \\(iOS\\) Nextcloud\\-iOS\\/(?\u003cversion\u003e(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)).*$/',\n    ]\n```\n\n### App Repository \nhttps://github.com/nextmcloud/nmc_marketing/tree/nmcfeat/master\n\n\n### TestCases\n\n\u003e ![Testcases](tests/CSPListnerTest.php)\n\nExecute test case steps:\n\nFrom server directory Execute below command\n\n./phpunit --configuration tests/phpunit-autotest.xml apps/nmc_marketing/tests/CSPListenerTest.php\n\n\nPhp unit install steps(https://phpunit.de/getting-started/phpunit-9.html):-\nNote:- Execute all commands at server level\n\n1.wget -O phpunit https://phar.phpunit.de/phpunit-9.phar\n\n2.chmod +x phpunit\n\nCheck php unit version:- \n\n./phpunit --version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextmcloud%2Fnmc_marketing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextmcloud%2Fnmc_marketing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextmcloud%2Fnmc_marketing/lists"}