Skip to content

Commit 9818e2a

Browse files
committed
update changelog
1 parent 01ef269 commit 9818e2a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

sdk/identity/azure-identity/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### Bugs Fixed
1010

11+
- Handles the scenario to gracefully handle unavalability of Key Ring on Linux platforms. [#46333](https://github.com/Azure/azure-sdk-for-java/pull/46333)
12+
1113
### Other Changes
1214

1315
## 1.16.3 (2025-07-18)

sdk/identity/azure-identity/src/main/java/com/azure/identity/implementation/PersistentTokenCacheImpl.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,15 @@ private PersistenceSettings getPersistenceSettings() {
8888
getCacheName(name != null ? name : DEFAULT_KEYRING_ITEM_NAME), DEFAULT_KEYRING_ATTR_NAME,
8989
DEFAULT_KEYRING_ATTR_VALUE, null, null);
9090
return persistenceSettingsBuilder.build();
91-
} catch (Exception e) {
92-
if (e instanceof KeyRingAccessException || !IdentityUtil.isKeyRingAccessible()) {
93-
if (!allowUnencryptedStorage) {
94-
throw LOGGER.logExceptionAsError(e instanceof KeyRingAccessException ? ((KeyRingAccessException) e) : new RuntimeException(e));
95-
}
96-
persistenceSettingsBuilder.setLinuxUseUnprotectedFileAsCacheStorage(true);
91+
} catch (Exception e) {
92+
if (e instanceof KeyRingAccessException || !IdentityUtil.isKeyRingAccessible()) {
93+
if (!allowUnencryptedStorage) {
94+
throw LOGGER.logExceptionAsError(e instanceof KeyRingAccessException
95+
? ((KeyRingAccessException) e)
96+
: new RuntimeException(e));
9797
}
98+
persistenceSettingsBuilder.setLinuxUseUnprotectedFileAsCacheStorage(true);
99+
}
98100
return persistenceSettingsBuilder.build();
99101
}
100102
}

0 commit comments

Comments
 (0)