예제 #1
0
        public async Task Authenticate(string authCode)
        {
            var token = await dropboxClient.Core.OAuth2.TokenAsync(authCode);

            accessToken = token.access_token;

            dropboxUserToken.UpdateOrCreateToken(HardcodedUser.Id, dropboxToken: accessToken);
        }
        public void Authenticate(Uri responseUri)
        {
            authorization = oAuthClient.ProcessUserAuthorization(responseUri, authorization);

            exactClient = new ExactOnlineClient(endPoint, GetAccessToken);

            dropboxUserToken.UpdateOrCreateToken(HardcodedUser.Id, exactToken: authorization.AccessToken, exactTokenExpiration: authorization.AccessTokenExpirationUtc);
        }