Skip to content

Commit

Permalink
Version changes for msal4j-brokers 1.0.3-beta and msal4j 1.14.3-beta (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Avery-Dunn authored Oct 25, 2023
1 parent d627b7a commit b551e70
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version 1.14.1-beta
Version 1.14.3-beta
=============
- Add proof-of-possession token support
- Add MSALRuntime logging support
Expand Down
6 changes: 3 additions & 3 deletions msal4j-brokers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure</groupId>
<artifactId>msal4j-brokers</artifactId>
<version>1.0.2-beta</version>
<version>1.0.3-beta</version>
<packaging>jar</packaging>
<name>msal4j-brokers</name>
<description>
Expand Down Expand Up @@ -34,12 +34,12 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>msal4j</artifactId>
<version>1.14.1-beta</version>
<version>1.14.3-beta</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>javamsalruntime</artifactId>
<version>0.13.8</version>
<version>0.13.10</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ public static class Builder {
public Builder() {
}

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

private Broker(Builder builder) {
supportWindows = builder.supportWindows;
this.supportWindows = builder.supportWindows;

//This will be expanded to cover other OS options, but for now it is only Windows. Since Windows is the only
// option, if app developer doesn't want to use the broker on Windows then they shouldn't use the Broker at all
if (!this.supportWindows) {
throw new MsalClientException("At least one operating system support option must be used when building the Broker instance", AuthenticationErrorCode.MSALJAVA_BROKERS_ERROR);
}
}
}
6 changes: 3 additions & 3 deletions msal4j-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Quick links:
The library supports the following Java environments:
- Java 8 (or higher)

Current version - 1.13.11
Current version - 1.14.3-beta

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).

Expand All @@ -28,13 +28,13 @@ Find [the latest package in the Maven repository](https://mvnrepository.com/arti
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>msal4j</artifactId>
<version>1.13.11</version>
<version>1.14.3-beta</version>
</dependency>
```
### Gradle

```gradle
compile group: 'com.microsoft.azure', name: 'msal4j', version: '1.13.11'
compile group: 'com.microsoft.azure', name: 'msal4j', version: '1.14.3-beta'
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion msal4j-sdk/bnd.bnd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Export-Package: com.microsoft.aad.msal4j;version="1.13.11"
Export-Package: com.microsoft.aad.msal4j;version="1.14.3-beta"
Automatic-Module-Name: com.microsoft.aad.msal4j
2 changes: 1 addition & 1 deletion msal4j-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.azure</groupId>
<artifactId>msal4j</artifactId>
<version>1.13.11</version>
<version>1.14.3-beta</version>
<packaging>jar</packaging>
<name>msal4j</name>
<description>
Expand Down

0 comments on commit b551e70

Please sign in to comment.