Skip to content

Commit

Permalink
OAuth conde no longer needed to be copied manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassie205 committed Sep 26, 2023
1 parent 6e0431e commit c92d58d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
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
: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}
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

0 comments on commit c92d58d

Please sign in to comment.