Where to specify credential details in Azure Information Protection AzureIP_test sample

0

I'm trying to get the AzureIP_test sample to work, but am having trouble figuring out where to specify certain credential details.

When I run my version of the sample against a test document, I get the following error:

An unexpected error occurred : Microsoft.InformationProtectionAndControl.InformationProtectionException: The parameter is incorrect. HRESULT: 0x80070057

I suspect I'm missing credential details, but I don't know where to specify the the details in the application.

Specifically, I think I need the following:

SymmetricKeyCredential symmetricKeyCred = new SymmetricKeyCredential(); symmetricKeyCred.AppPrincipalId = ConfigurationManager.AppSettings["AppPrincipalId"]; symmetricKeyCred.Base64Key = ConfigurationManager.AppSettings["Base64Key"]; symmetricKeyCred.BposTenantId = ConfigurationManager.AppSettings["BposTenantId"];

Does anyone know the best place to specify these details? Are there other useful details I'm missing?

data-protection
azure-information-protection
microsoft-information-protection
asked on Stack Overflow Jan 12, 2018 by Lance Leonard

1 Answer

1

you need to provide your AAD Application registration information and how you logon with in the App.Config file that is associated with the sample you are using on GitHub

-------BEGINNING OF THE APP CONFIG FILE------

/.auth/login/done" />

-------END OF APP CONFIG file ---------------------


User contributions licensed under CC BY-SA 3.0