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 1 commit
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
7 changes: 3 additions & 4 deletions protocols/onedrive.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@ 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.
- 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
Cassie205 marked this conversation as resolved.
Show resolved Hide resolved
: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.
- 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
6 changes: 5 additions & 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 Expand Up @@ -60,6 +60,10 @@ There is a preview method of review application consent through the Azure Active

## SharePoint Server

```{note}
Cassie205 marked this conversation as resolved.
Show resolved Hide resolved
Currently limited to connect mode [smart synchronisation](../mountainduck/connect/sync.md).
```

To connect to a SharePoint Server, choose [WebDAV](webdav/index.md) for the connection type. This is available to

- SharePoint Server 2013
Expand Down