Skip to content

An Authentication Tree Node for integration into Recaptcha Enterprise

Notifications You must be signed in to change notification settings

ForgeRock/Recaptcha-Enterprise-Auth-Tree-Nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recaptcha Enterprise Authentication Nodes

The Recaptcha Enterprise authentication nodes lets administrators integrate Recaptcha Enterprise decision tools into an AM authentication trees.

Usage

To deploy these nodes, download the jar from the releases tab on github here. Next, copy the jar into the ../web-container/webapps/openam/WEB-INF/lib directory where AM is deployed. Restart the web container to pick up the new nodes. The nodes will then appear in the authentication trees components palette.

These nodes assumes you have the following:

  • A Google Cloud Project with reCaptcha Enterprise Enabled
  • A reCAPTCHA Enterprise Key
    • That has the AM Domain whitelisted
    • That uses integration type: Scoring, with no visible challenge to your users

Recaptcha Enterprise Profiler Node

This node tags the AM login page with the Recaptcha Enterprise JS to collect information about the event.

Recaptcha Enterprise Profiler Node Configuration

Recaptcha Enterprise Assessment Node

This node makes a request the Recaptcha Enterprise Assessment API to retrieve a score and reason codes about the users event.

Recaptcha Enterprise Assessment Node Configuration

  • reCaptcha Enterprise Project Id - Google Cloud Project Id
  • Key - Recaptcha Enterprise Service Account Key. Copy the entire JSON blob that was downloaded from the reCaptcha Enterprise servce into this field. An example of the key would be:
{
  "type": "service_account",
  "project_id": "recaptcha-project-id",
  "private_key_id": "12903109239012903",
  "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBAD...=\n-----END PRIVATE KEY-----\n",
  "client_email": "project@recaptcha-enterprise-12312.iam.gserviceaccount.com",
  "client_id": "123456789012345678901",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/project%40name.iam.gserviceaccount.com"
}

Recaptcha Enterprise Reason Code Node

This node analyzes the response from the Recaptcha Enterprise Assessment Node and routes to the first outcome returned and removes it from the list. The possible outcomes are Automation, Unexpected Environment, Too Much Traffic, Unexpected Usage Patterns, Low Confidence Score, and None Returned. The Recaptcha Enterprise Reason Code Node can also be daisy-chained together to test for a combination of outcomes.

Recaptcha Enterprise Score Node

This node analyzes the response from the Recaptcha Enterprise Assessment Node and checks to see if the risk score greater than or less than the configured value.

Recaptcha Enterprise Score Node

  • Score Threshold - reCAPTCHA Enterprise returns a score (1.0 is very likely a good interaction, 0.0 is very likely a bot). Based on the score, you can take appropriate action in the context of your site.

Recaptcha Enterprise Annotation Node

This node calls the Recaptcha Enterprise Annotation API to tune your site specific model. This additional information will help reCAPTCHA Enterprise perform better for your site over time.

Recaptcha Enterprise Annotation Node Configuration

  • Annotation - The annotation to send for this assessment. The annotation options are Unspecified, Legitimate, Fraudulent, Password Correct, Password Incorrect, and Unrecognized.
  • Key - Recaptcha Enterprise Service Account Key. Copy the entire JSON blob that was downloaded from the reCaptcha Enterprise service into this field. This should be the same key used in the Recaptcha Enterprise Assessment Node.

Example Flow

RECAPTCHA_TREE

Sequence Diagram

SEQUENCE

About

An Authentication Tree Node for integration into Recaptcha Enterprise

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages