Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth code no longer needed to be copied manually #420

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added protocols/_images/Dropbox_Permissions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified protocols/_images/Google_Drive_OAuth_2_Authentication.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified protocols/_images/Google_Storage_OAuth_Token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added protocols/_images/OneDrive_Sign_In.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions protocols/dropbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ Access your [Dropbox](https://db.tt/49NiK95I) without syncing to your computer.

![Dropbox Link](_images/Dropbox_Link.png)

3. Log in to Dropbox and paste the authorization code obtained to the login prompt.
3. Log in to Dropbox and grant permissions to *Cyberduck*.

![Dropbox Authorization Code](_images/Dropbox_Authorization_Code.png)
![Dropbox Permissions](_images/Dropbox_Permissions.png)

4. The authorization code will be submitted to Cyberduck automatically.

```{admonition} Multiple Accounts
:class: tip
Expand Down
2 changes: 1 addition & 1 deletion protocols/googlecloudstorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You must obtain the project ID (`x-goog-project-id`) of your project from the Go

![Project ID Bookmark Configuration](_images/Project_ID_Bookmark_Configuration.png)

In the login prompt of Cyberduck, you enter the `x-goog-project-id` for the username and enter the *Authorization Code* retrieved from the website where you grant Cyberduck access to your account.
In the login prompt of Cyberduck, you enter the `x-goog-project-id` for the username. The authorization code will be submitted to Cyberduck automatically.

![Cyberduck OAuth Permissions](_images/Google_Storage_OAuth_Token.png)

Expand Down
4 changes: 1 addition & 3 deletions protocols/googledrive.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ Connect to your [Google Drive](http://drive.google.com/) to store plain files.

### Authentication

Google Drive uses OAuth 2 to allow Cyberduck to access your files on Google Drive. Choose your account email as the username in the bookmark and choose *Allow* on the website opened in your default web browser to allow Cyberduck to *View and manage the files in your Google Drive*. Copy the authentication code displayed into the login prompt.
Google Drive uses OAuth 2 to allow Cyberduck to access your files on Google Drive. Choose your account email as the username in the bookmark and choose *Allow* on the website opened in your default web browser to allow Cyberduck to *View and manage the files in your Google Drive*. The authorization code will be submitted to Cyberduck automatically. Subsequent connections will not require authorization, unless the refresh token itself is expired due to inactivity.

![OAuth 2 Authentication](_images/Google_Drive_OAuth_2_Authentication.png)

![OAuth 2 Prompt](_images/Google_Drive_OAuth_2_Authentication_Code_Prompt.png)

```{attention}
Using *[Advanced Protection Program](https://support.google.com/accounts/answer/7539956#non-goog_apps&zippy=%2Ccan-i-use-non-google-apps-services-or-apps-script-with-advanced-protection)* will cause the OAuth login flow to fail.
```
Expand Down
14 changes: 6 additions & 8 deletions protocols/onedrive.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ Download [Mountain Duck](https://mountainduck.io/) as an alternative to the *One

The OneDrive connection profile is bundled by default and connects to the endpoint `https://graph.microsoft.com/v1.0/me`. Login with your personal or business account to `login.microsoftonline.com` when prompted to grant access to Cyberduck.

1. OneDrive uses OAuth 2 for authentication with `graph.microsoft.com`. When opening a connection, a web browser window is opened to grant access to OneDrive for Cyberduck.
```{image} _images/Microsoft_OneDrive_OAuth_Authorization.png
:alt: OAuth 2 Authentication
:width: 500px
```
2. Copy the authorization code into the login prompt in Cyberduck to complete authentication. Subsequent connections will not require authorization, unless the refresh token itself is expired due to inactivity.
- OneDrive uses OAuth 2 for authentication with `graph.microsoft.com`. When opening a connection, a web browser window is opened to grant access to OneDrive for Cyberduck.

![OneDrive sign in](_images/OneDrive_Sign_In.png)

- The authorization code will be submitted to Cyberduck automatically. Subsequent connections will not require authorization, unless the refresh token itself is expired due to inactivity.

![OAuth 2 Prompt](_images/OneDrive_OAuth_2_Authorization.png)

```{admonition} Multiple Accounts
:class: tip
You can connect to multiple accounts at the same time. Create a new bookmark for every account and run through the OAuth flow.
You can connect to multiple accounts at the same time. Create a new bookmark for every account and run through the OAuth flow. Make sure to log out of any account in web browser before triggering the OAuth flow for a new account.
```

### Reset OAuth Tokens
Expand Down
2 changes: 1 addition & 1 deletion protocols/sharepoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Connect to *SharePoint Online* with the built-in *Microsoft SharePoint connectio
2. Enter your email address into the username field. The email address is solely used for internal identification and not actual authentication against SharePoint using OAuth.
3. Double click to connect to the newly created bookmark. You are prompted to enter an *Authorization Code* you obtain in the web browser window opened. Login to `login.microsoftonline.com` with your `onmicrosoft.com` account.
4. Grant permission to *Cyberduck* for *OneDrive* and *SharePoint*.
5. You are redirected to `https://cyberduck.io/oauth/` where you can copy the *Authorization Code* to paste in the login prompt.
5. The authorization code will be submitted to Cyberduck automatically.
6. You are now able to access all sites, subsites, and document libraries thereof as well as all groups you are a member of.

### Microsoft SharePoint Site Connection Profile
Expand Down
Loading