Skip to content

aquibm/react-azure-ad-demo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

react-azure-ad-demo

DEMO: http://react-ad.aquibm.com/

How to get started:

  1. Copy .env.sample and rename to .env.local
  2. Create Azure Active Directory
  3. Register a new App under Azure Active Directory
  4. Navigate to App and Click on Manifest, set oauth2ImplicitFlow to true, Add your apps reply URL to the list of reply URL's in the manifest.
  5. Add user to Azure Active Directory
  6. Add the user to the App in Azure Active Directory
  7. Navigate to App in Azure Active Directory, select 'Permissions' and click on 'Grant Permissions". (This will grant the selected users permission to the App).
  8. Navigate to App in Azure Active Directory and Click on Manifest, Copy the 'IdentifiedUrl', paste it into the REACT_APP_AUTH_TENANT field in the .env.local file of your solution. Remember to remove the "http://" part from the value.
  9. Copy the ApplicationId of the App in Azure Active Directory and paste it into the REACT_APP_AUTH_CLIENT_ID value in the .env.local file of your solution.

Your .env.local should look something like this: alt text

Done!