Git Product home page Git Product logo

active-directory-b2c-dotnet-sign-up-user-flow-captcha's Introduction

page_type languages products description urlFragment
sample
C#
.Net core
azure-active-directory
A sample to demonstrate how to use a captcha service during sign-up in Azure AD B2C user flows
active-directory-b2c-sign-up-user-flow-captcha

active-directory-b2c-user-flow-captcha

Contents

File/folder Description
Assets/selfAsserted.html Sample custom HTML and JS script file for user flow.
Assets Contains UI/UX assets used by the user flows.
AzureFunction.cs Sample source code for HTTP trigger.
README.md This README file.
.gitignore Define what to ignore at commit time.
LICENSE The license for the sample.

Key Concepts

Captcha services are often used in authentication scenarios to protect against bots or other automated abuse. This sample demonstrates how to use Azure AD B2C user flows to utilize a captcha service during user sign-up.

Key components:

  • reCAPTCHA - a captcha service for protecting against bots and other automated abuse.
  • Azure AD B2C sign-up user flow - The sign-up experience that will be using the captcha service. Will utilize the custom page content and API connectors to integrate with the captcha service.
  • Azure Function - API endpoint hosted by you that works in conjunction with the API connectors feature. This API is responsible for inter-mediating between the user flow and the captcha service to determine whether a user can successfully sign-up.

This same pattern can be used for other Captcha services and with other API hosting services.

Create a user flow

This can be either be a sign up and sign in or a just sign up or user flow. Follow these instructions..

Create an API key pair for reCAPTCHA V3

  • Follow the reCAPTCHA documentation to create an API key pair for your site.
  • Use your Azure AD B2C tenant as the domain: <tenantname>.b2clogin.com
  • You will receive a site_key and secret_key. The values of these are referred to as CAPTCHA_SITE_KEY and CAPTCHA_SECRET_KEY in the sample code.

active-directory-b2c-dotnet-sign-up-user-flow-captcha's People

Contributors

nickgmicrosoft avatar saraswatshantanu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.