This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied to the new Azure portal. Add support of App-Only Tokne which uses Client Secret.
- Loading branch information
Showing
13 changed files
with
917 additions
and
330 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
# How to register a V1 Web application | ||
|
||
This tutorial introduces how to register the application using Microsoft Azure portal. | ||
Once you registered an application by following this tutorial, you can use it as a "Web application" in Office365APIEditor. | ||
Once you registered an application by following this tutorial, you can use it as a "Web app / API" in Office365APIEditor. | ||
|
||
1. Go to https://manage.windowsazure.com/ and sign in using your administrator account of Microsoft Azure. | ||
1. Go to https://portal.azure.com/ and sign in using your administrator account of Microsoft Azure. | ||
|
||
2. Click [Active Directory] in the left panel. | ||
2. Click [Azure Active Directory] in the left panel. | ||
|
||
3. In [DIRECTORY] tab, select the name of your organization. | ||
3. Click [App registration] tab. | ||
|
||
4. In [APPLICATIONS] tab, click [ADD] at the bottom. | ||
4. Click [New application registration]. | ||
|
||
5. Click [Add an application my organization is developing]. | ||
5. Enter the name of your application. (e.g. MyWebApp) | ||
|
||
6. Enter the name of your application. (e.g. MyWebApp) | ||
6. Select [Web app / API]. | ||
|
||
7. Select [WEB APPLICATION AND/OR WEB API] and go to the next page. | ||
7. Enter the sing-on URL of your application in [Sign-on URL] box. (e.g. https:<span></span>//localhost/MyWebApp <- Whatever is fine.) | ||
|
||
8. Enter the sing-in URL of your application in [SIGN-ON URL] box. (e.g. http:<span></span>//localhost/MyWebApp <- Whatever is fine.) | ||
8. Click [Create]. | ||
|
||
9. Enter the APP ID URI of your application in [APP ID URI] box (e.g. http:<span></span>//contoso.onmicrosoft.com/MyWebApp <- Whatever is fine.) | ||
9. Click the application which you created. | ||
|
||
10. Click [Complete]. | ||
10. Click [Keys]. | ||
|
||
11. In [CONFIGURE] tab, go to [Keys] section and select the duration of the key. (e.g. 2 years) | ||
11. Enter the name of your key. (e.g. Key01) | ||
|
||
12. Go to [permissions to other applications] section and add the necessary permissions for your application. | ||
If your application has to read the messages in users mailbox using Office 365 API (outlook.office.com), you have to add the [Read user mail] permission under [Delegated Permissions] of [Office 365 Exchange Online]. | ||
If your application has to read the messages in users mailbox using Graph API (graph.microsoft.com), you have to add the [Read user mail] permission under [Delegated Permissions] of [Microsoft Graph]. | ||
12. Select the duration of the key. (e.g. 2 years) | ||
|
||
13. Click [SAVE] at the bottom. | ||
13. Click [Save]. | ||
|
||
14. Check the following values and use them in Office365APIEditor. | ||
14. Copy the [Value] to the safety place. | ||
|
||
15. Click [Required permissions] and add the necessary permissions for your application. | ||
If your application has to read the messages in users mailbox using Office 365 API (outlook.office.com), you have to add the [Read user mail] permission under [DELEGATED PERMISSIONS] of [Office 365 Exchange Online (Microsoft.Exchange)]. | ||
If your application has to read the messages in users mailbox using Graph API (graph.microsoft.com), you have to add the [Read user mail] permission under [DELEGATED PERMISSIONS] of [Microsoft Graph]. | ||
|
||
16. Check the following values and use them in Office365APIEditor. | ||
|
||
| Value in Azure portal | Textbox in Office365APIEditor | | ||
|:----------------------|-------------------------------| | ||
|SIGN-ON URL |Redirect URL | | ||
|CLIENT ID |Client ID | | ||
|key in [Keys] section |Client Secret | | ||
|Application ID |Application ID | | ||
|Reply URL |Reply URL | | ||
|Value of Key |Key | |
2 changes: 1 addition & 1 deletion
2
tutorials/How_to_register_a_V1_Web_application_for_App_Only_Token.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
tutorials/How_to_register_a_V1_Web_application_for_App_Only_Token_Key_Auth.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# How to register a V1 Web application for App Only Token which uses the Key to acquire the Access Token | ||
|
||
This tutorial introduces how to register the application using Microsoft Azure portal. | ||
Once you registered an application by following this tutorial, you can use it as a "Web app / API (Use App Only Token by key)" in Office365APIEditor. | ||
|
||
1. Go to https://portal.azure.com/ and sign in using your administrator account of Microsoft Azure. | ||
|
||
2. Click [Azure Active Directory] in the left panel. | ||
|
||
3. Click [App registration] tab. | ||
|
||
4. Click [New application registration]. | ||
|
||
5. Enter the name of your application. (e.g. MyAppOnlyTokenApp) | ||
|
||
6. Select [Web app / API]. | ||
|
||
7. Enter the sing-on URL of your application in [Sign-on URL] box. (e.g. https:<span></span>//localhost/MyAppOnlyTokenApp <- Whatever is fine.) | ||
|
||
8. Click [Create]. | ||
|
||
9. Click the application which you created. | ||
|
||
10. Click [Keys]. | ||
|
||
11. Enter the name of your key. (e.g. Key01) | ||
|
||
12. Select the duration of the key. (e.g. 2 years) | ||
|
||
13. Click [Save]. | ||
|
||
14. Copy the [Value] to the safety place. | ||
|
||
15. Click [Required permissions] and add the necessary permissions for your application. | ||
If your application has to read the message in all mailboxes of all users using Graph API (graph.microsoft.com), you have to add the [Read mail in all mailboxes] permission under [APPLICATION PERMISSIONS] of [Microsoft Graph]. | ||
|
||
16. Check the following values and use them in Office365APIEditor. | ||
If you have not completed ADMIN CONSENT, complete it before acquiring Access Token. | ||
|
||
| Value in Azure portal | Textbox in Office365APIEditor | | ||
|:----------------------|-------------------------------| | ||
|Application ID |Application ID | | ||
|Value of Key |Key | |