Пример #1
0
 public bool LogOut()
 {
     authResult            = null;
     serverUrl             = null;
     IsSharePointAvailable = null;
     return(true);
 }
Пример #2
0
        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;
                }
            }
        }
Пример #3
0
 private async Task AuthenticateDiscoveryServiceAsync()
 {
     discoveryAuthResult = await Authentication.Authentication.Current.AcquireTokenByRefreshToken(Office365DiscoveryServerUrl);
 }
Пример #4
0
 public bool LogOut()
 {
     discoveryAuthResult       = null;
     office365ServiceEndpoints = null;
     return(true);
 }