OAuth App must be created in Microsoft Azure AD. These settings typically found here https://docs.microsoft.com/en-us/graph/auth-register-app-v2.
[API Help..]
Parameter |
Label |
Required |
Options |
Description |
Help |
AuthUrl |
Authorization URL |
YES |
Option |
Value |
For Single Tenant |
https://login.microsoftonline.com/{ENTER-TENANT-ID-HERE}/oauth2/v2.0/authorize |
For Multi Tenant |
https://login.microsoftonline.com/common/oauth2/v2.0/authorize |
|
|
|
TokenUrl |
Token URL |
YES |
Option |
Value |
For Single Tenant |
https://login.microsoftonline.com/{ENTER-TENANT-ID-HERE}/oauth2/v2.0/token |
For Multi Tenant |
https://login.microsoftonline.com/common/oauth2/v2.0/token |
|
|
|
ClientId |
Client ID |
YES |
|
|
|
ClientSecret |
Client Secret |
NO |
|
|
|
RefreshTokenFilePath |
Refresh Token File Path |
NO |
|
If you cant fit long refresh token in ConnectionString from your program then use this. Supply three properies in json format (i.e. save this in file { "access_token": "YOUR_ACCESS_TOKEN", "refresh_token": "YOUR_REFRESH_TOKEN", "expires_in": 3600 } )
|
|
Scope |
Scope |
YES |
Option |
Value |
offline_access |
offline_access |
Files.Read |
Files.Read |
Files.Read.All |
Files.Read.All |
Files.ReadWrite |
Files.ReadWrite |
Files.ReadWrite.All |
Files.ReadWrite.All |
openid |
openid |
profile |
profile |
Sites.Read.All |
Sites.Read.All |
Sites.ReadWrite.All |
Sites.ReadWrite.All |
User.Read |
User.Read |
|
Permissions you want to use.
|
|
ReturnUrl |
ReturnUrl |
NO |
|
|
|
RetryMode |
RetryMode |
NO |
Option |
Value |
None |
None |
RetryAny |
RetryAny |
RetryWhenStatusCodeMatch |
RetryWhenStatusCodeMatch |
|
|
|
RetryStatusCodeList |
RetryStatusCodeList |
NO |
|
|
|
RetryCountMax |
RetryCountMax |
NO |
|
|
|
RetryMultiplyWaitTime |
RetryMultiplyWaitTime |
NO |
|
|
|
ExtraAttributesForAuthRequest |
Login Prompt Option |
NO |
Option |
Value |
None |
|
Force login prompt |
prompt=login |
Force permission select |
prompt=consent |
|
Choose this if you want to force login prompt or permission prompt.
|
API Help |
SearchOptionForNonIndexedFields |
Search Option For Non-Indexed Fields (Default=Blank - Search Only Indexed) |
NO |
Option |
Value |
Search Only Indexed |
|
Search Both Indexed and Non-Indexed |
HonorNonIndexedQueriesWarningMayFailRandomly |
|
If you wish to do certain operations e.g. search / order by on non-indexed fields then you have to set this option to HonorNonIndexedQueriesWarningMayFailRandomly. By default filter / orderby on non-indexed fields not allowed.
|
|
ExtraHeaders |
Extra Headers (e.g. Header1:AAA||Header2:BBB) |
NO |
Option |
Value |
MyHeader1:AAA |
MyHeader1:AAA |
MyHeader1:AAA||MyHeader2:BBB |
MyHeader1:AAA||MyHeader2:BBB |
|
|
|