Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 226cb66

Browse files
author
Peter Nied
committed
Fix ADAL silent authentication flow
Silent authentication has always been broken within ADAL because instead of using the resource ID, the OneDrive SDK was refreshing on the resource url for the OneDrive service.
1 parent dbba6cf commit 226cb66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onedrivesdk/src/main/java/com/onedrive/sdk/authentication/ADALAuthenticator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ public void onError(final Exception e) {
421421
loginSilentWaiter.signal();
422422
}
423423
};
424-
mAdalContext.acquireTokenSilent(mResourceUrl.get(), getClientId(), mUserId.get(), callback);
424+
425+
mAdalContext.acquireTokenSilent(mOneDriveServiceInfo.get().serviceResourceId, getClientId(), mUserId.get(), callback);
425426

426427
loginSilentWaiter.waitForSignal();
427428
//noinspection ThrowableResultOfMethodCallIgnored

0 commit comments

Comments
 (0)