Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1012 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 1012 Bytes

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.