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

How to login to sharepoint with command on linux machine #544

Open
maiductuan opened this issue Mar 14, 2022 · 1 comment
Open

How to login to sharepoint with command on linux machine #544

maiductuan opened this issue Mar 14, 2022 · 1 comment

Comments

@maiductuan
Copy link

How to login to sharepoint with command on linux machine, I can't remote into virtual machine, can only ssh
-----------------------------------------log-------------------------
Loading config ...
No config file found, using defaults
Initializing the OneDrive API ...
Authorize this app visiting:

Invalid uri
Could not initialize the OneDrive API
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=22c49a0d-d21c-4792-aed1-8f163c982546&scope=files.readwrite%20files.readwrite.all%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient

Enter the response uri:
ERROR: script returned exit code 1
Finished: FAILURE

@maiductuan maiductuan changed the title Could not initialize the OneDrive API How to login to sharepoint with command on linux machine Mar 14, 2022
@abraunegg
Copy link

@maiductuan

How to login to sharepoint with command on linux machine

The 'skilion' onedrive client does not support SharePoint. To sync SharePoint data you need to use https://github.com/abraunegg/onedrive

Major Differences / Enhancements:

  • Existing bugs with the 'skilion' client fixed
  • File upload / download validation to ensure data integrity
  • Support Real-Time syncing of remote updates via webhooks
  • Supports Shared Folder support for OneDrive Personal and OneDrive Business accounts
  • Supports SharePoint / Office365 Shared Libraries
  • Supports Desktop notifications via libnotify
  • Supports Dry-run capability to test configuration changes
  • Prevent major OneDrive accidental data deletion after configuration change
  • Supports National cloud deployments (Microsoft Cloud for US Government, Microsoft Cloud Germany, Azure and Office 365 operated by 21Vianet in China)
  • Supports single & multi-tenanted applications
  • Supports rate limiting of traffic
  • Support for Docker
  • Support for Podman

I can't remote into virtual machine, can only ssh

You do not need remote graphical display. The authentication URL you are given, you can use on any other system | browser to obtain the response URI - which you can then paste back into your SSH connection where the application is waiting for your response.

You can also present the authentication response as a key value pair, where the application waits for the file containing your response, then reads that authentication response from that file:

--auth-files ARG
      Perform authorization via two files passed in as ARG in the format `authUrl:responseUrl`
      The authorization URL is written to the `authUrl`, then onedrive waits for the file `responseUrl`
      to be present, and reads the response from that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants