Skip to content

A demo of using React and Redux to sign in to Azure AD B2C

License

Notifications You must be signed in to change notification settings

harishnarain/react-aad-b2c-demo

Repository files navigation

Azure AD with React/React Hooks/MSAL.js 2.x Demo

Here is a sign on page I put together to demo sign on capabilities in React with React Hooks and the MSAL.js 2.0 library. More information on MSAL.js 2.0 can be found here: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-javascript-auth-code

Installation

  1. Clone this GitHub repository
git clone https://github.com/harishnarain/react-aad-b2c-demo
  1. Install all dependent npm packages
npm install --save
  1. Run the demo in development
npm start

Usage

Update the clientId section of the /src/authConfig.js file to include your specific application ID from your Azure AD application registration.

Screenshots

Screenshot

Technologies used

  • Microsoft Authentication Library (MSAL) for JS
  • ReactJS
  • Material-UI

License

MIT License

Contributing

Pull requests are welcome.