Skip to content

Commit daa9dec

Browse files
pjlittlezmmille2
authored andcommitted
Added sample app
1 parent 5c14fe5 commit daa9dec

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sample/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ The React AAD MSAL library provides the following features:
1515
- create your own function to handle how logout (using this AzureAD component) is trigger in your react app
1616
* Optional use of redux store containing the token and user information returned from Active Directory
1717

18+
## Getting Started
19+
- Build the `react-aad-msal` component: `npm install && npm run build`
20+
- create a `.env.local` file, with the following variables:
21+
```
22+
REACT_APP_AAD_APP_CLIENT_ID=<client id guid>
23+
REACT_APP_AUTHORITY=<authority url (optional)>
24+
```
25+
- Run the sample application: `npm install && npm run start`
26+
27+
The sample site should launch in a Web browser.
28+
1829
### Prerequisites
1930

2031
*Setting up an Azure Active Directory App*
@@ -29,6 +40,7 @@ Documentation for AAD B2C Application:
2940

3041
https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-app-registration
3142

43+
<<<<<<< HEAD
3244
## Getting Started
3345

3446
*NOTE: in order to successfully build and run this sample, be sure to complete the prerequisite steps above.
@@ -44,6 +56,8 @@ An Azure Active Directory application must first be setup and configured.*
4456

4557
The sample site should launch in a Web browser.
4658

59+
=======
60+
>>>>>>> Added sample app
4761
### Quickstart
4862

4963
1. `git clone [repository clone url]`

0 commit comments

Comments
 (0)