SharePoint Online Application (Certificate) Account

Overview

You can use this account to connect SharePoint Online Snaps with data sources that use a Certificate account. SharePoint Online certificates enable secure data exchange and meet certain security standards.



Prerequisites

  • Valid Client ID
  • Valid KeyStore credentials

Account settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String
Specify a unique label for the account.

Default value: N/A

Example: SharePoint Online Application(Certificate) Account

Client ID*

String
Specify the Client ID associated with your Azure application. You can create the Client ID as advised by your application provider. Learn more about generating the Client ID.

Default value: N/A

Example: 4ea0faba-b0bc-3715-a474-bf9049d2e047

Key store*

String
Specify the path to the key store file. It can be in SLDB or at any other unauthenticated endpoint. If you are uploading a file from SLDB, the path must be absolute. You can obtain this path by looking at the preview of your file and specifying the path at the top.
  • For SLDB, the path for the Key store must be in the following format: /EnvName/ProjectSpace/Project/JKSFile
  • If you are using a local file on the Snaplex, it must be available on all nodes.

Default value: N/A

Example: /EnvName/ProjectSpace/Project/JKSFile.jks (SLDB) or file:///pathtoJKSFile/JKSFile.jks (Groundplex)

KeyStore password*

String
Specify the password for the keystore. If the key associated with the alias has a password, it must be the same as the keystore password.

Default value: N/A

Example: DemoPass123

Application scope

String
Specify the scope of the application's execution.

Default value: https://graph.microsoft.com/.default offline_access

Example: https://graph.microsoft.com/.default offline_access

Access token

String
Auto-generated after authorization. The access token associated with the Azure application is used to make API requests on behalf of the user linked to the client ID.

Default value: N/A

Example: <encrypted>

Access token expiration

Integer
Auto-generated after authorization. Indicates the duration (in EPOCH time, seconds) for which the access token is valid.

Default value: Current Time + 3600 seconds

Example: 1658834044

OAuth2 token endpoint*

String
Specify the token endpoint to get the access token.

Default value: https://login.microsoftonline.com/<tenantName>.onmicrosoft.com/oauth2/v2.0/token

Example: https://login.microsoftonline.com/testTenant.onmicrosoft.com/oauth2/v2.0/token

Token endpoint config Use this fieldset to provide custom properties for the OAuth2 token endpoint.
Token endpoint parameter

String
Specify the name for the token endpoint parameter.

Default value: N/A

Example: scope

Token endpoint parameter value

String
Specify the value for the parameter, typically the default scope.

Default value: N/A

Example: https://graph.microsoft.com/.default

Auto-refresh token

Checkbox
Select this checkbox to enable automatic token refresh. If you deselect this checkbox, the token will expire and will not be refreshed automatically.

Default value: Deselected

Note: Click Validate after entering the required details to ensure that all fields have been filled accurately. Click Apply to save the settings.

Upload your certificate to the Microsoft identity platform

The certificate can be uploaded to the registered app for your client application on the Microsoft Identity platform using the following steps:

  1. Log in to the Azure portal and navigate to your client application.
  2. Select Certificates & secrets > Certificates.
  3. Select the Upload certificate and select the certificate file to upload.
  4. Select Add. Once the certificate is uploaded, the thumbprint, start date, and expiration values are displayed.

Learn more: Application Configuration in the Azure Portal and Upload Certificate.

Troubleshooting

Error Cause Resolution
500- Internal Server Error An invalid private key was provided in the key-store file, or an incorrect Client ID was entered. Ensure that you have provided the correct and valid KeyStore password or Client ID for the account and have granted the required access permissions to the application.