public bool LogOut() { authResult = null; serverUrl = null; IsSharePointAvailable = null; return(true); }
private async Task AuthenticateAsync() { if (IsSharePointAvailable == null) { serverUrl = await Office365.Current.GetServiceEndpointAsync(Office365Service.SharePoint); if (serverUrl != null) { authResult = await Authentication.Authentication.Current.AcquireTokenByRefreshToken(serverUrl); IsSharePointAvailable = (authResult.Status == Authentication.Authentication.AuthenticationStatus.Success); } else { IsSharePointAvailable = false; } } }
private async Task AuthenticateDiscoveryServiceAsync() { discoveryAuthResult = await Authentication.Authentication.Current.AcquireTokenByRefreshToken(Office365DiscoveryServerUrl); }
public bool LogOut() { discoveryAuthResult = null; office365ServiceEndpoints = null; return(true); }