Giter Site home page Giter Site logo

skleeschulte / basic-to-sharepoint-auth-http-proxy Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 14.0 154 KB

HTTP proxy server that can access resources which use SharePoint HTTP authentication with credentials supplied by Basic HTTP authentication.

License: MIT License

Dockerfile 1.55% JavaScript 98.45%

basic-to-sharepoint-auth-http-proxy's People

Contributors

skleeschulte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

basic-to-sharepoint-auth-http-proxy's Issues

HyperBackup fails to verify integrity

Hello,
I am sure that you know what Hyper backup is, as I think you tested this on synology + docker, right?

so, I setup your proxy, I got it to work to upload the backups (100GB) every day to a sharepoint site

but once the integrity check hits on sunday, it throws an error about corrupted backups and stops working

is this something because of the proxy, because of hyperbackup or just straight away sharepoint online?

could you help with this?

Authentication error

Hello,
I created an app password to login, because 2 factor authentication is not supported.
Unfortunately I can't get it working. Docker container on my Synology was is OK, with port exposed.
But when I try to setup the backup in HyperBackup I always get the authentication error.
Am I missing something?
Help would be greatly appreciated.
Thank you very much!

Issue with edu account

Hello
I have an office 365 account with my university. Im not allowed to generate an app password and for account authentication sharepoint takes me first to my university login website (message “Taking you to your organization's sign-in page”). I believe this is a limitation when trying to use the proxy to add the hyper backup task.
Are there any workarounds?

thanks

2021-01-04T01:07:56.817Z proxy:info Proxy server listening: { address: '::', family: 'IPv6', port: 3000 }
2021-01-04T01:18:25.281Z proxy:error [623422/7546] An error occurred during user authentication: { RequestError: Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443
    at new RequestError (/usr/src/app/node_modules/request-promise-core/lib/errors.js:14:15)
    at Request.plumbing.callback (/usr/src/app/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (/usr/src/app/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/usr/src/app/node_modules/request/request.js:185:22)
    at Request.emit (events.js:198:13)
    at Request.onRequestError (/usr/src/app/node_modules/request/request.js:881:8)
    at ClientRequest.emit (events.js:198:13)
    at TLSSocket.socketErrorListener (_http_client.js:392:9)
    at TLSSocket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  name: 'RequestError',
  message:
   'Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443',
  cause:
   { Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443
       at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
     errno: 'EAI_AGAIN',
     code: 'EAI_AGAIN',
     syscall: 'getaddrinfo',
     hostname: 'login.microsoftonline.com',
     host: 'login.microsoftonline.com',
     port: 443 },
  error:
   { Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443
       at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
     errno: 'EAI_AGAIN',
     code: 'EAI_AGAIN',
     syscall: 'getaddrinfo',
     hostname: 'login.microsoftonline.com',
     host: 'login.microsoftonline.com',
     port: 443 },
  options:
   { simple: false,
     strictSSL: false,
     json: true,
     form: { login: '[email protected]' },
     uri: 'https://login.microsoftonline.com/GetUserRealm.srf',
     method: 'POST',
     callback: [Function: RP$callback],
     transform: undefined,
     resolveWithFullResponse: false,
     transform2xxOnly: false },
  response: undefined }
2021-01-04T01:18:30.303Z proxy:error [628494/9234] An error occurred during user authentication: { RequestError: Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443
    at new RequestError (/usr/src/app/node_modules/request-promise-core/lib/errors.js:14:15)
    at Request.plumbing.callback (/usr/src/app/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (/usr/src/app/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/usr/src/app/node_modules/request/request.js:185:22)
    at Request.emit (events.js:198:13)
    at Request.onRequestError (/usr/src/app/node_modules/request/request.js:881:8)
    at ClientRequest.emit (events.js:198:13)
    at TLSSocket.socketErrorListener (_http_client.js:392:9)
    at TLSSocket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  name: 'RequestError',
  message:
   'Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443',
  cause:
   { Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443
       at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
     errno: 'EAI_AGAIN',
     code: 'EAI_AGAIN',
     syscall: 'getaddrinfo',
     hostname: 'login.microsoftonline.com',
     host: 'login.microsoftonline.com',
     port: 443 },
  error:
   { Error: getaddrinfo EAI_AGAIN login.microsoftonline.com login.microsoftonline.com:443
       at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
     errno: 'EAI_AGAIN',
     code: 'EAI_AGAIN',
     syscall: 'getaddrinfo',
     hostname: 'login.microsoftonline.com',
     host: 'login.microsoftonline.com',
     port: 443 },
  options:
   { simple: false,
     strictSSL: false,
     json: true,
     form: { login: '[email protected]' },
     uri: 'https://login.microsoftonline.com/GetUserRealm.srf',
     method: 'POST',
     callback: [Function: RP$callback],
     transform: undefined,
     resolveWithFullResponse: false,
     transform2xxOnly: false },
 response: undefined }

Backup is slow

Hi there,
The backup task is extremely slow compared to a "standard" via S3 for example.
Is this a consequence of the use of WebDAV?
Thanks,
Loïc

Connecting to University Account

Hello,

I was wondering if I could have your help. My university changed from Google Drive to OneDrive and O365 last month. I am trying to backup my nas using your tool but I seem to be running into problems. I believe they are using O365 business and I have tried to follow your instructions but am getting an error:

"Insufficient privileges to access this destination shared folder. Please contact the destination administrator for assistance"

Now when I go to my URL to sign in, it first redirects me to an Okta page to authenticate with SMS MFA, once I do that, it takes me to a landing page where I can select One Drive.

The URL for One Drive is: https://xxx365-my.sharepoint.com/personal/my_email_like_this/_layouts/15/onedrive.aspx

This is where I land.

Above where I say my_email_like_this it is instead of [email protected] -- its me_domain_edu.

When I select my old Backup folder - which they migrated, I get:

https://xxx365-my.sharepoint.com/personal/my_email_like_this/_layouts/15/onedrive.aspxid=%2Fpersonal%2xxxxxxx%5Fxxxxx%5Fedu%5Fxxxx%2FDocuments%2FSynology%20Hyper%20Backup

Any help would be really helpful :)
Screen Shot 2022-04-23 at 09 03 42

Screen Shot 2022-04-23 at 09 13 42

Destination corrupted

hello.

for the past 4-5 weeks i have started to see corrupted backups on my synology system. the backup process performs ok but once hyperbackup runs the integrity check, it will show a Destination corrupted error. this will cause the backup to be useless.
No matter how many times i re-run the backup task, it will eventually get corrupted.

Backup task was unable to run due to errors found at the backup destination. The following files were found broken in the latest integrity check and cannot be restored. There may be other broken files which were not detected this time. If you have further questions, please contact Synology support.

image

The Backup destination does not exist.

Hi,

I've had this setup for some weeks and it's been fine. Recently the backups and backup integrity checks keep failing because "Exception occurred while backing up data. (The backup destination does not exist)".

What is strange is that in Hyper Backup's 'Target' GUI it has a green status symbol saying "On-line".

If I go to 'Backup Explorer' I can see and download multiple version histories of the same file, so it's clear the connection to OneDrive Sharepoint is valid.

I can see that I've used 3573/5000GB on my OneDrive account, so there's still room to spare.

I'm unsure why the connection to Sharepoint seems to work and yet the backups keep failing for connection issues.

Any ideas why this may happen?

"Connection Refused by server" on Synology File Station

hi there, I hope to get some help...

I downloaded this image and successfully setting up using Synology Docker.

(I saw this from the log: proxy:info Proxy server listening: { address: '::', family: 'IPv6', port: 3000 }.)

however, I am not able to mount my OneDrive Business account via WebDav in File Station.

here is my config:
host: localhost
port: 3000
Path: /personal/user_domain_com/Documents
Account Name: user email address
Password: user email password

if I type in a wrong password, it will show "authentication error"
however, if I type in the correct password, it will prompt "Connection Refused by server"

any one knows how can I make it work?

appreciate your help~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.