Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 1.68 KB

File metadata and controls

19 lines (13 loc) · 1.68 KB

Secure App Model

Cloud Solution Provider (CSP) Sample

This sample demonstrates how a Cloud Solution Provider partner can utilize the refresh token obtained using the Partner Consent sample with the Partner Center Java SDK.

Configuration

The following configurations in the application.properties file need to be modified:

  • keyvault.baseurl - The base address for the instance of Azure Key Vault where the refresh token has been stored.
  • AZURE_CLIENT_ID - The identifier for the Azure AD application that has been allowed access to the instance of Azure Key Vault.
  • AZURE_CLIENT_SECRET - The application secret associated with the application configured to access the instance of Azure Key Vault.
  • AZURE_TENANT_ID - The application tenant id associated with the application configured to access the instance of Azure Key Vault.
  • partnercenter.accountId - The account identifier, also known as the Azure AD tenant identifier, for the partner.
  • partnercenter.clientId - The application identifier for the Azure AD application configured for use with the Partner Center API.
  • partnercenter.clientSecret - The application secret associated with the application configured to access the Partner Center API.

Please note that in production scenarios we recommend that you use certificate based authentication to access the instance of Azure Key Vault. The confidential client flow has been used in the sample for simplicity.