Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ private void refreshCache() {

try {
URL openIdUrl = new URL(this.url);
HashMap<String, String> openIdConf =
HashMap<String, Object> openIdConf =
this.mapper.readValue(openIdUrl, new TypeReference<HashMap<String, Object>>() {
});
URL keysUrl = new URL(openIdConf.get("jwks_uri"));
URL keysUrl = new URL(openIdConf.get("jwks_uri").toString());
lastUpdated = System.currentTimeMillis();
UrlJwkProvider provider = new UrlJwkProvider(keysUrl);
keyCache = provider.getAll().stream().collect(Collectors.toMap(Jwk::getId, jwk -> jwk));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CredentialsAuthenticator implements Authenticator {
throws MalformedURLException {

app = ConfidentialClientApplication
.builder(appId, ClientCredentialFactory.create(appPassword))
.builder(appId, ClientCredentialFactory.createFromSecret(appPassword))
.authority(configuration.getAuthority())
.build();

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>msal4j</artifactId>
<version>0.5.0-preview</version>
<version>1.8.0</version>
</dependency>

<dependency>
Expand Down