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

Cannot gain access code (token) via for SharePoint on duck(linux) #15587

Closed
junukwon7 opened this issue Jan 28, 2024 · 1 comment
Closed

Cannot gain access code (token) via for SharePoint on duck(linux) #15587

junukwon7 opened this issue Jan 28, 2024 · 1 comment
Labels
cli Command Line Interface sharepoint

Comments

@junukwon7
Copy link

Describe the bug
Cannot log into sharepoint

To Reproduce
Steps to reproduce the behavior:

  1. Install duck on ubuntu 22.04
  2. Do duck --username username --list sharepoint:/
  3. The prompt says to open web browser to authenticate and obtain an authorization code, with a login.microsoftonline URL.
  4. Using my mac (ubuntu-server is headless), log-in.
  5. Approve the app on behalf the organization (I'm the admin).
  6. Nothing happens, stuck here.

Additionally, with development tools present in Chromium-based browsers, the error says

Failed to launch 'x-cyberduck-action://oauth/?code=0.AcoA3RBTXEtpLUqsidjWsrNQJo_BC_QCzRJCt_EVJD5....shVLs&state=ht....dh&session_state=cf2e58.....44cf' because the scheme does not have a registered handler.

Tried copy-pasting the code="" part, but didn't work.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Basically, stuck here. Clicking the continue button triggers the action, but not showing the code.
image

Desktop (please complete the following information):

  • OS: ubuntu-server 22.04 as a PVE LXC
  • Version: Cyberduck 8.7.2 (40975).

Additional context
As a software dev with some experience for Microsoft SSO integration on products, I guess the return address and/or the App Registration settings should be changed. Basically it should simply print out the code visually, as in some cases the machine used for browser verification might not have a duck executable.

@dkocher dkocher added cli Command Line Interface sharepoint labels Jan 28, 2024
@dkocher
Copy link
Contributor

dkocher commented Jan 28, 2024

I can confirm the custom redirect URI is not registered with Cyberduck CLI and is unable retrieve events from the web browser. Duplicate for #13587. As a workaround use the connection profile from 1

Footnotes

  1. Connection profile to use with Cyberduck CLI for OneDrive & SharePoint profiles#77

@dkocher dkocher closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command Line Interface sharepoint
Projects
None yet
Development

No branches or pull requests

2 participants