Skip to content

Commit b551e70

Browse files
authored
Version changes for msal4j-brokers 1.0.3-beta and msal4j 1.14.3-beta (#734)
* Ensure correlation ID is never null * Version changes for msal4j-brokers 1.0.3-beta and msal4j 1.14.3-beta * Ensure that builder values for supported OS's are used
1 parent d627b7a commit b551e70

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.14.1-beta
1+
Version 1.14.3-beta
22
=============
33
- Add proof-of-possession token support
44
- Add MSALRuntime logging support

msal4j-brokers/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.microsoft.azure</groupId>
77
<artifactId>msal4j-brokers</artifactId>
8-
<version>1.0.2-beta</version>
8+
<version>1.0.3-beta</version>
99
<packaging>jar</packaging>
1010
<name>msal4j-brokers</name>
1111
<description>
@@ -34,12 +34,12 @@
3434
<dependency>
3535
<groupId>com.microsoft.azure</groupId>
3636
<artifactId>msal4j</artifactId>
37-
<version>1.14.1-beta</version>
37+
<version>1.14.3-beta</version>
3838
</dependency>
3939
<dependency>
4040
<groupId>com.microsoft.azure</groupId>
4141
<artifactId>javamsalruntime</artifactId>
42-
<version>0.13.8</version>
42+
<version>0.13.10</version>
4343
</dependency>
4444
<dependency>
4545
<groupId>org.projectlombok</groupId>

msal4j-brokers/src/main/java/com/microsoft/aad/msal4jbrokers/Broker.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ public static class Builder {
255255
public Builder() {
256256
}
257257

258+
/**
259+
* When set to true, MSAL Java will attempt to use the broker when the application is running on a Windows OS
260+
*/
258261
public Builder supportWindows(boolean val) {
259262
supportWindows = val;
260263
return this;
@@ -266,6 +269,12 @@ public Broker build() {
266269
}
267270

268271
private Broker(Builder builder) {
269-
supportWindows = builder.supportWindows;
272+
this.supportWindows = builder.supportWindows;
273+
274+
//This will be expanded to cover other OS options, but for now it is only Windows. Since Windows is the only
275+
// option, if app developer doesn't want to use the broker on Windows then they shouldn't use the Broker at all
276+
if (!this.supportWindows) {
277+
throw new MsalClientException("At least one operating system support option must be used when building the Broker instance", AuthenticationErrorCode.MSALJAVA_BROKERS_ERROR);
278+
}
270279
}
271280
}

msal4j-sdk/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Quick links:
1616
The library supports the following Java environments:
1717
- Java 8 (or higher)
1818

19-
Current version - 1.13.11
19+
Current version - 1.14.3-beta
2020

2121
You can find the changes for each version in the [change log](https://github.com/AzureAD/microsoft-authentication-library-for-java/blob/master/changelog.txt).
2222

@@ -28,13 +28,13 @@ Find [the latest package in the Maven repository](https://mvnrepository.com/arti
2828
<dependency>
2929
<groupId>com.microsoft.azure</groupId>
3030
<artifactId>msal4j</artifactId>
31-
<version>1.13.11</version>
31+
<version>1.14.3-beta</version>
3232
</dependency>
3333
```
3434
### Gradle
3535

3636
```gradle
37-
compile group: 'com.microsoft.azure', name: 'msal4j', version: '1.13.11'
37+
compile group: 'com.microsoft.azure', name: 'msal4j', version: '1.14.3-beta'
3838
```
3939

4040
## Usage

msal4j-sdk/bnd.bnd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Export-Package: com.microsoft.aad.msal4j;version="1.13.11"
1+
Export-Package: com.microsoft.aad.msal4j;version="1.14.3-beta"
22
Automatic-Module-Name: com.microsoft.aad.msal4j

msal4j-sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.microsoft.azure</groupId>
55
<artifactId>msal4j</artifactId>
6-
<version>1.13.11</version>
6+
<version>1.14.3-beta</version>
77
<packaging>jar</packaging>
88
<name>msal4j</name>
99
<description>

0 commit comments

Comments
 (0)