{"id":27938253,"url":"https://github.com/drawing-captcha/nuget","last_synced_at":"2025-05-07T08:46:35.025Z","repository":{"id":283088981,"uuid":"950606989","full_name":"Drawing-Captcha/NuGet","owner":"Drawing-Captcha","description":"Drawing Captcha Umbraco Integration","archived":false,"fork":false,"pushed_at":"2025-03-31T13:43:11.000Z","size":2784,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-04T14:47:36.946Z","etag":null,"topics":["nuget","umbraco-v13"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/DrawingCaptcha","language":"JavaScript","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/Drawing-Captcha.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}},"created_at":"2025-03-18T12:23:22.000Z","updated_at":"2025-03-31T13:43:14.000Z","dependencies_parsed_at":"2025-03-18T14:37:23.379Z","dependency_job_id":"0a718afb-c5e1-4428-8630-4cf3156ecafb","html_url":"https://github.com/Drawing-Captcha/NuGet","commit_stats":null,"previous_names":["drawing-captcha/nuget"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FNuGet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FNuGet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FNuGet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FNuGet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drawing-Captcha","download_url":"https://codeload.github.com/Drawing-Captcha/NuGet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252846666,"owners_count":21813432,"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":["nuget","umbraco-v13"],"created_at":"2025-05-07T08:46:33.415Z","updated_at":"2025-05-07T08:46:34.960Z","avatar_url":"https://github.com/Drawing-Captcha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Drawing Captcha Umbraco Integration\n\nThis is the NuGet package for .NET 8 .NET Core applications, primarily written to extend the Umbraco Forms Integration. You can find the package on [NuGet](https://www.nuget.org/packages/DrawingCaptcha/).\n\n## Installation\n\nOnce the NuGet package is installed, the package source will be copied to `~/App_Plugins/Drawing_Captcha/`.\n\n## Setup\n\n### Script Integration\n\nAfter installation, implement the script that triggers the drawing captcha attributes. It is recommended to place this script in the base page view to ensure it is rendered after the form:\n\n```html\n\u003cscript src=\"~/App_Plugins/Drawing_Captcha/captcha.js\" onload=\"initializeCaptcha()\"\u003e\u003c/script\u003e\n```\n\nExample integration in a Razor view:\n\n```razor\n@using System.Globalization\n@inherits UmbracoViewPage\u003cIBasePage\u003e\n@using Microsoft.Extensions.Configuration\n@inject IConfiguration Configuration\n@inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor\n\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    @await Html.PartialAsync(\"Partials/Header\")\n    @RenderBody()\n    @await Html.PartialAsync(\"Partials/Footer\")\n    \u003cscript src=\"~/App_Plugins/Drawing_Captcha/captcha.js\" onload=\"initializeCaptcha()\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Configuration\n\nEnsure your API key and server are configured in `appsettings.json`:\n\n```json\n\"Forms\": {\n    \"FieldTypes\": {\n        \"DrawingCaptcha\": {\n            \"APIKey\": \"yourapikey\",\n            \"Server\": \"https://yourdrawingcaptchainstance.com/\"\n        }\n    }\n}\n```\n\nYou can obtain an API key by creating a company account if you haven't done so already. Make sure to allow the origin that will be using the drawing captcha.\n\n![Origin Setup](https://github.com/user-attachments/assets/8eaf6df7-090d-4c5a-8253-44528dab4dde)\n\n### API Key Management\n\nNavigate to drawing-captcha \u003e api-keys to create a new API key.\n\n![API Key Navigation](https://github.com/user-attachments/assets/04afe91c-75d9-4ed5-8252-ce62969c6c81)\n\nCreate an API key:\n\n![API Key Creation](https://github.com/user-attachments/assets/de5e86df-68c5-415f-8686-49f263cdaa62)\n\n### Umbraco Backoffice Integration\n\nAfter setting up the configuration, navigate to the Umbraco Forms backoffice. You should see the extended field type added by the package, indicating that the drawing captcha is active.\n\n![Field Type Added](https://github.com/user-attachments/assets/d5b09c52-cca9-4901-a349-477a940de258)\n\nHere you can see that the drawing captcha is active:\n\n![Captcha Active](https://github.com/user-attachments/assets/e3cb0304-41b7-4b54-8d80-b9ce00ecdf21)\n\n## Additional Resources\n\n- [GitHub Repository](https://github.com/Drawing-Captcha/Nuget)\n- [Documentation](https://docs.drawing-captcha.com)\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contact\n\nFor issues or contributions, please visit the [GitHub repository](https://github.com/Drawing-Captcha/Nuget).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawing-captcha%2Fnuget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrawing-captcha%2Fnuget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawing-captcha%2Fnuget/lists"}