You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ Find the assignment for ClientID and replace the value with the Application ID f
77
77
78
78
-`userInfoCallback`: A user defined callback function. The AzureAD library will calls this function when login is complete to pass back the user info in the following format:
79
79
80
-
```javascript
80
+
```
81
81
IUserInfo {
82
82
jwtAccessToken: string,
83
83
jwtIdToken: string,
@@ -100,7 +100,7 @@ Find the assignment for ClientID and replace the value with the Application ID f
100
100
## Login
101
101
To login, first create a callback function for the AzureAD component to consume. This function will be called when the component loads, and it will pass in the function to be called when the user wants to login. In this case, we create a button that will log the user in.
A sample React-based Single Page Application (SPA) that uses this component is available in the [sample folder](sample/README.md). There you'll find a couple implementations that leverage the library, as well as a tutorial of how to set up Azure Active Directory with an Identity Provider.
181
181
182
-
## Resources //TODO
182
+
## Resources
183
183
184
-
- [Azure Active Directory](https://docs.microsoft.com/en-us/azure/active-directory/get-started-azure-ad)
For our `unauthenticatedFunction` property, we setup a function that returns a a div that lets the user know we are going to redirect them, and uses the login function provided by our AzureAD component to complete the login in a new window.
142
142
143
-
``` javascript
143
+
``` jsx
144
144
unauthenticatedFunction = loginFunction => {
145
145
if (this.state.redirectEnabled && !this.interval) {
0 commit comments