From b63b18dbb8964ba4d1d564e2fdc7094b92e93bf5 Mon Sep 17 00:00:00 2001 From: Majid Achhoud Date: Mon, 29 Apr 2024 17:33:20 +0200 Subject: [PATCH] Remove BoxAuthenticatorMock and fix README --- .../Box/BoxAuthenticatorMock.swift | 9 --------- .../CryptomatorCloudAccessIntegrationTests/README.md | 11 ----------- 2 files changed, 20 deletions(-) delete mode 100644 Tests/CryptomatorCloudAccessIntegrationTests/Box/BoxAuthenticatorMock.swift diff --git a/Tests/CryptomatorCloudAccessIntegrationTests/Box/BoxAuthenticatorMock.swift b/Tests/CryptomatorCloudAccessIntegrationTests/Box/BoxAuthenticatorMock.swift deleted file mode 100644 index d12d536..0000000 --- a/Tests/CryptomatorCloudAccessIntegrationTests/Box/BoxAuthenticatorMock.swift +++ /dev/null @@ -1,9 +0,0 @@ -// -// BoxAuthenticatorMock.swift -// CryptomatorCloudAccessIntegrationTests -// -// Created by Majid Achhoud on 25.04.24. -// Copyright © 2024 Skymatic GmbH. All rights reserved. -// - -import Foundation diff --git a/Tests/CryptomatorCloudAccessIntegrationTests/README.md b/Tests/CryptomatorCloudAccessIntegrationTests/README.md index 7a33107..5bc22ea 100644 --- a/Tests/CryptomatorCloudAccessIntegrationTests/README.md +++ b/Tests/CryptomatorCloudAccessIntegrationTests/README.md @@ -38,17 +38,6 @@ If you are building via a CI system, set these secret environment variables acco To get a developer token for Box, generate it in the Box Developer Portal, keeping in mind that it expires after 60 minutes. For more detailed instructions, check out the [OAuth 2.0 Documentation from Box](https://developer.box.com/guides/authentication/oauth2/). -To obtain the refresh token from Box, it is recommended to extract it from `authenticate` after a successful login. The easiest way to do this is to set a breakpoint inside the `BoxAuthenticator`: - -```swift -public static func authenticate(from viewController: UIViewController, tokenStore: TokenStore) -> Promise<(BoxClient, String)> { - return Promise { - // ... - fulfill((client, user.id)) // set breakpoint here - // ... -} -``` - #### Dropbox To get the access token for Dropbox, generate a token in the Dropbox Developer Portal. For more detailed instructions, check out the [OAuth Guide from Dropbox](https://developers.dropbox.com/oauth-guide).