Giter VIP home page Giter VIP logo

recaptcha-migration-guide's Introduction

Steps to switch from reCaptcha to Arkose Enforcement Challenge

  1. Read over our Developer Guides for Standard setup and Server-side
  2. Private and Public key pair
  3. Client-Side integration
  4. Server-Side integration

Developer Guide

Here is our external facing Developer Guide which includes the Standard Setup

Keys

Your keys which will be shown in the dashboard.arkoselabs.com for both public and private. If you do not have any keys please reach out to your Sales Rep or Sales Engineer.

Client Side Integration

<html>
  <head>
    <title>reCAPTCHA demo: Simple page</title>
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  </head>
  <body>
    <form action="?" method="POST">
      <div class="g-recaptcha" data-sitekey="your_site_key"></div>
      <br/>
      <input type="submit" value="Submit">
    </form>
  </body>
</html>

to

<html>
<head>
 <script src="//client-api.arkoselabs.com/v2/INSERT_PUBLIC_KEY/api.js" data-callback="setupEnforcement" async defer></script>
</head>
<body>
 <script>   
    function setupEnforcement(myEnforcement) {
      myEnforcement.setConfig({ 
        selector: '#enforcement-trigger',
        onCompleted: function(response) {
          var token = response.token.toString();
        }
      });
    }
 </script>
</body>
</html>

Update public key from the Arkose dashboard

Server Side Integration

You're likely using a reCaptcha library but Arkose does not provide a stand alone library. There is however sample code provided here.

Private Key

Update secret key to the Arkose Labs private key located in your dashboard

Replace parameter

g-recaptcha-response becomes the Session_tokenie verification

Update POST URL

Make a POST request to the Verify Endpoint and include a session token containing the value of the response.token from the response object.

https://www.google.com/recaptcha/api/siteverify

to

https://verify-api.arkoselabs.com/api/v3/verify/

recaptcha-migration-guide's People

Contributors

frostjohnal avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.