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

Commit

Permalink
Invoice feature update (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaiah Williams authored Feb 6, 2020
1 parent 56e90b8 commit bac8579
Show file tree
Hide file tree
Showing 6 changed files with 242 additions and 159 deletions.
4 changes: 2 additions & 2 deletions sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.store</groupId>
<artifactId>partnercenter-samples</artifactId>
<version>1.15.2</version>
<version>1.15.3</version>
<packaging>jar</packaging>
<name>Samples</name>
<url>http://maven.apache.org</url>
Expand All @@ -14,7 +14,7 @@
<dependency>
<groupId>com.microsoft.store</groupId>
<artifactId>partnercenter</artifactId>
<version>1.15.2</version>
<version>1.15.3</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public AuthenticationToken authenticate()
PublicClientApplication app;
String authority;
String clientId;
String commonDomain;
String scope;

try
Expand All @@ -51,14 +52,20 @@ public AuthenticationToken authenticate()
.getUserAuthentication()
.get("ClientId");

commonDomain = ConfigurationHolder
.getInstance()
.getConfiguration()
.getPartnerServiceSettings()
.get("CommonDomain");

scope = ConfigurationHolder
.getInstance()
.getConfiguration()
.getUserAuthentication()
.get("Scope");

app = PublicClientApplication.builder(clientId)
.authority(authority + "/common")
.authority(authority + "/" + commonDomain)
.build();

deviceCodeConsumer = (DeviceCode deviceCode) -> {
Expand Down
Loading

0 comments on commit bac8579

Please sign in to comment.