पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.1.0

flutter_recaptcha_v2

Google ReCaptcha V2 के लिए एक Flutter प्लगइन।

30-दिन डाउनलोड
68
लाइक
39
Pub अंक
15

पैकेज इंस्टॉल करें

flutter pub add flutter_recaptcha_v2

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर प्लगइन जो मोबाइल एप्लिकेशन में Google ReCaptcha V2 को एकीकृत करता है, जिससे डेवलपर्स फॉर्म और लॉगिन फ्लो में बॉट सुरक्षा जोड़ सकते हैं। यह दोनों एंड्रॉइड और आईओएस प्लेटफॉर्म पर reCAPTCHA चुनौतियों को रेंडर और सत्यापित करने के लिए एक सरल इंटरफेस प्रदान करता है। प्लगइन गूगल के reCAPTCHA सेवा के साथ नीचे की स्तर के संचार को संभालता है, जिससे उपयोगकर्ता अंतरक्रियाओं की सुरक्षित सत्यापन सुनिश्चित होती है। उपयोग में आसान डिज़ाइन किया गया है, यह असिंक्रोनस सत्यापन का समर्थन करता है और सर्वर-साइड सत्यापन के लिए टोकन लौटाता है।

उपयोग

  • बॉट्स से लॉगिन फॉर्म की रक्षा करना
  • संपर्क फॉर्म उपलब्धियों को सुरक्षित करना
  • स्वचालित खाता सृजन से बचें
  • पंजीकरण कार्य प्रवाह में सुरक्षा को बढ़ाना
  • संवेदनशील संचालन में उपयोगकर्ता क्रियाकलाप की पुष्टि करना

मुख्य विशेषताएँ

  • Flutter ऐप्स के साथ सरल एकीकरण
  • reCAPTCHA V2 अदृश्य और सामान्य प्रकार का समर्थन करता है
  • सर्वर सत्यापन के लिए सत्यापन टोकन लौटाता है
  • क्रॉस-प्लेटफॉर्म संगतता (Android और iOS)
  • असिंक्रोनस सत्यापन कार्य प्रवाह

इनके लिए उपयुक्त

  • सुरक्षित प्रमाणीकरण प्रवाह बना रहे विकासकर्मी
  • फॉर्म पर बॉट सुरक्षा की आवश्यकता वाले ऐप्स
  • अपने अप्रत्याशित उपयोग नियमों के अनुपालन की आवश्यकता वाले परियोजनाएँ
  • Flutter में Google के reCAPTCHA सेवा को एकीकृत करने वाली टीमें
  • उच्च जोखिम वाले स्वचालित दुरुपयोग के साथ मोबाइल ऐप्स

विचार योग्य बातें

  • reCAPTCHA सत्यापन के लिए इंटरनेट कनेक्शन की आवश्यकता होती है
  • सर्वर-पक्ष टोकन प्रमाणीकरण अनिवार्य है
  • अगर सावधानी से लागू नहीं किया गया, तो उपयोगकर्ता अनुभव प्रभावित हो सकता है
  • बाहरी गूगल सेवा उपलब्धता पर निर्भर करता है
  • reCAPTCHA V2 तक सीमित, V3 या नवीनतम संस्करणों के लिए नहीं

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

flutter_recaptcha_v2

A Flutter plugin for Google ReCaptcha V2.

Getting Started

This plugin requires Webview to use Google ReCaptcha. This plugin only supports Google ReCAPTCHA V2 (not V3)

Obtain your own key & secret here: https://www.google.com/recaptcha

!!! Remember to add this domain into the reCaptcha setting or add your own domain: recaptcha-flutter-plugin.firebaseapp.com

Then test your API KEY at: https://recaptcha-flutter-plugin.firebaseapp.com/?api_key=API_KEY

Put RecaptchaV2 widget into your widget tree (Usually inside Stack widget), make sure it's placed on top of the tree and block all the behind interactions:

  • You can change the plugin url for the captcha domain insde the RecaptchaV2 or leave it by default non adding the line:
pluginURL: "https://mypersonalurl.com"

if you have setted your own domain, specify the domain used

  • To show the Cancel Button with the captcha controller set the boolean to true:
visibleCancelBottom: true

otherwise it won't appear

  • Set the Text for the Cancel buttom or leave it by default:
textCancelButtom: "CANCEL CAPTCHA"
Example
RecaptchaV2Controller recaptchaV2Controller = RecaptchaV2Controller();
...
RecaptchaV2(
    apiKey: "YOUR_API_KEY", // for enabling the reCaptcha
    apiSecret: "YOUR_API_SECRET", // for verifying the responded token
    pluginURL: "https://mypersonalurl.com",
	visibleCancelBottom: true,
	textCancelButtom: "CUSTOM CANCEL CAPTCHA BUTTOM TEXT",
	controller: recaptchaV2Controller,
    onVerifiedError: (err){
        print(err);
    },
    onVerifiedSuccessfully: (success) {
        setState(() {
            if (success) {
                // You've been verified successfully.
            } else {
                // "Failed to verify.
            }
        });
    },
),

The RecaptchaV2 widget is hidden by default, you need to attach the RecaptchaV2Controller and call show() method when needed. Like this:

recaptchaV2Controller.show();

Manually hide it:

recaptchaV2Controller.hide();

That's it!

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 2 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।