{"repo":"llybin/drf-recaptcha","free":true,"listed":false,"github":"https://github.com/llybin/drf-recaptcha","clone":"git clone https://github.com/llybin/drf-recaptcha.git","description":"Django REST framework reCAPTCHA","language":"Python","stars":93,"topics":["python","django","django-rest-framework","recaptcha-v2","recaptcha-v3","recaptcha"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Django REST reCAPTCHA Django REST reCAPTCHA v2 and v3 field serializer Requirements Python: 3.10, 3.11, 3.12, 3.13 Django: 4.2, 5.0, 5.1, 5.2 DRF: 3.14, 3.15, 3.16 Installation 1. Sign up for reCAPTCHA 2. Install with pip install drf-recaptcha 3. Add \"drf recaptcha\" to your INSTALLED APPS settings. 4. Set in settings DRF RECAPTCHA SECRET KEY Usage Settings DRF RECAPTCHA SECRET KEY - set your Google reCAPTCHA secret key. Type: str. DRF RECAPTCHA DEFAULT V3 SCORE - by default: 0.5 . Type: float. DRF RECAPTCHA ACTION V3 SCORES - by default: {} . Type: dict. You can define specific score for each action e.g. {\"login\": 0.6, \"feedback\": 0.3} DRF RECAPTCHA DOMAIN - by default: www.google.com . Type: str. DRF RECAPTCHA PROXY - by default: {} . Type: dict. e.g. {'http': 'http://127.0.0.1:8000', 'https': 'https://127.0.0.1:8000'} DRF RECAPTCHA VERIFY REQUEST TIMEOUT - by default: 10 . Type: int. Priority of secret key value 1. settings DRF RECAPTCHA SECRET KEY 2. the argument secret key of field 3. request.context[\"recaptcha secret key\"] Silence the check error If you need to disable the error, you can do so using the django settings. reCAPTCHA v3 Validation is passed if the score value returned by Google is greater than or equal to required score. Required score value: 0.0 - 1.0 Priority of score value If not defined or zero in current item then value from next item. 1. Value for action in settings DRF RECAPTCHA ACTION V3 SCORES 2. Value in argument required score of field 3. Default ","default_branch":null,"files":null,"tree":[],"storefront":"/r/llybin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/llybin/drf-recaptcha/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}