This commit is contained in:
Ben Alfasi
2019-03-12 18:46:36 +02:00
parent b17a17fdd9
commit 5956f492a3

View File

@ -95,7 +95,7 @@ Done! You have successfully registered an application!
### Step 2 - Get a token using the App and use this token to access the API. ### Step 2 - Get a token using the App and use this token to access the API.
- Copy the script below to PowerShell ISE or to a text editor, and save as "**Get-Token.ps1**" - Copy the script below to PowerShell ISE or to a text editor, and save it as "**Get-Token.ps1**"
- Running this script will generate a token and will save it in the working folder under the name "**Latest-token.txt**". - Running this script will generate a token and will save it in the working folder under the name "**Latest-token.txt**".
``` ```
@ -121,11 +121,11 @@ return $token
``` ```
- Sanity Check: - Sanity Check:<br>
Run the script. Run the script.<br>
In your browser go to: https://jwt.ms/ In your browser go to: https://jwt.ms/ <br>
Copy the token (the content of the Latest-token.txt file). Copy the token (the content of the Latest-token.txt file).<br>
Paste in the top box. Paste in the top box.<br>
Look for the "roles" section. Find the Alert.Read.All role. Look for the "roles" section. Find the Alert.Read.All role.
![Image jwt.ms](images/api-jwt-ms.png) ![Image jwt.ms](images/api-jwt-ms.png)