Update the build and sample configuration (#22)

This commit is contained in:
Isaiah Williams 2019-10-02 23:03:02 -05:00 коммит произвёл GitHub
Родитель 433fb7139f
Коммит 282efc254d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 10 добавлений и 11 удалений

Просмотреть файл

@ -1,6 +1,6 @@
# Partner Center SDK for Java Samples
[![Build Status](https://dev.azure.com/isaiahwilliams/public/_apis/build/status/partner-center-java-samples?branchName=master)](https://dev.azure.com/isaiahwilliams/public/_build/latest?definitionId=27&branchName=master)
[![Build Status](https://dev.azure.com/isaiahwilliams/public/_apis/build/status/partner-center-java-samples?branchName=master)](https://dev.azure.com/isaiahwilliams/public/_build/latest?definitionId=41&branchName=master)
This repository contains samples for the Partner Center SDK for Java.
@ -8,7 +8,7 @@ This repository contains samples for the Partner Center SDK for Java.
| Sample Name | Description |
|-------------|-------------|
| [SDK Samples](sdk/README.md) | Console application that demonstrates each scenario the Partner Center Java SDK is capable of performing.|
| [SDK Samples](sdk/README.md) | Console application that demonstrates each scenario the Partner Center SDK for Java is capable of performing.|
| [Secure Application Model](secure-app-model/README.md) | A set of projects that demonstrate how a Control Panel Vendor (CPV) and a Cloud Solution Provider (CSP) should implement the Secure Application Model. |
## Reporting Security Issues

Просмотреть файл

@ -10,9 +10,6 @@ strategy:
pool:
vmImage: $(imageName)
trigger:
- master
variables:
LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'

Просмотреть файл

@ -47,12 +47,14 @@ public class ScenarioContext
if ( this.appPartnerOperations == null )
{
System.out.println( "Authenticating application... " );
IPartnerCredentials appCredentials =
PartnerCredentials.getInstance().generateByApplicationCredentials( ConfigurationHolder.getInstance().getConfiguration().getAppAuthentication().get( "ApplicationId" ),
ConfigurationHolder.getInstance().getConfiguration().getAppAuthentication().get( "ApplicationSecret" ),
ConfigurationHolder.getInstance().getConfiguration().getAppAuthentication().get( "Domain" ),
ConfigurationHolder.getInstance().getConfiguration().getPartnerServiceSettings().get( "AuthenticationAuthorityEndpoint" ),
ConfigurationHolder.getInstance().getConfiguration().getPartnerServiceSettings().get( "GraphEndpoint" ) );
PartnerCredentials.getInstance().generateByApplicationCredentials(
ConfigurationHolder.getInstance().getConfiguration().getAppAuthentication().get("ApplicationId"),
ConfigurationHolder.getInstance().getConfiguration().getAppAuthentication().get("ApplicationSecret"),
ConfigurationHolder.getInstance().getConfiguration().getAppAuthentication().get("Domain"),
ConfigurationHolder.getInstance().getConfiguration().getPartnerServiceSettings().get("AuthenticationAuthorityEndpoint"),
ConfigurationHolder.getInstance().getConfiguration().getPartnerServiceSettings().get("GraphEndpoint"));
System.out.println( "Authenticated!" );
this.appPartnerOperations = PartnerService.getInstance().createPartnerOperations( appCredentials );

Просмотреть файл

@ -2,7 +2,7 @@
"PartnerServiceSettings": {
"PartnerServiceApiEndpoint": "https://api.partnercenter.microsoft.com",
"AuthenticationAuthorityEndpoint": "https://login.microsoftonline.com/",
"GraphEndpoint": "https://graph.windows.net/.default",
"GraphEndpoint": "https://graph.windows.net/",
"CommonDomain": "common"
},
"UserAuthentication": {