Skip to content

Commit 608a899

Browse files
author
sgonzalezMSFT
committed
Fix comment
1 parent 855a1aa commit 608a899

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/samples/cache/TokenCacheAspect.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void beforeCacheAccess(ITokenCacheAccessContext iTokenCacheAccessContext)
2424
@Override
2525
public void afterCacheAccess(ITokenCacheAccessContext iTokenCacheAccessContext) {
2626
data = iTokenCacheAccessContext.tokenCache().serialize();
27-
// you could implement logic here to write changes to file here
27+
// you could implement logic here to write changes to file
2828
}
2929

3030
private static String readDataFromFile(String resource) {
@@ -34,7 +34,7 @@ private static String readDataFromFile(String resource) {
3434
Files.readAllBytes(
3535
Paths.get(path.toURI())));
3636
} catch (Exception ex){
37-
System.out.println("Error reading data from file");
37+
System.out.println("Error reading data from file: " + ex.getMessage());
3838
throw new RuntimeException(ex);
3939
}
4040
}

src/samples/confidential-client/ClientCredentialGrant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private static IAuthenticationResult acquireToken() throws Exception {
3030
// dummy data, so the acquireTokenSilently call will fail.
3131
TokenCacheAspect tokenCacheAspect = new TokenCacheAspect("sample_cache.json");
3232

33-
// This is the secret that is created in the Azure AD portal
33+
// This is the secret that is created in the Azure portal when registering the application
3434
IClientCredential credential = ClientCredentialFactory.createFromSecret(CLIENT_SECRET);
3535
ConfidentialClientApplication cca =
3636
ConfidentialClientApplication

0 commit comments

Comments
 (0)