helpdavfs2 - Support: sr #109122, Support form-and-cookie based...

 
 

sr #109122: Support form-and-cookie based authentication

Submitted by:  Iiro Laiho <ilmaisin>
Submitted on:  Tue Aug 23 09:40:39 2016  
 
Category: NonePriority: 5 - Normal
Severity: 1 - WishStatus: Wont Do
Privacy: PublicAssigned to: Werner Baumann <wbaumann>
Open/Closed: OpenOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri Sep 2 08:18:21 2016, comment #3:

I did not notice that this is about OneDrive. Microsoft uses some kind of federated authentication system. Some years ago I tried to find information about the protocol but nothing I found on the Microsoft website was useful for me.

Werner

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Sat Aug 27 23:17:17 2016, comment #2:

I experimented with the rtFA and FedAuth cookies without success. It may be that the authentication system on ODfB is more compicated than just one or few cookies. In worst case it may be that the server checks that the cookie matches other HTTP headers of the client.

Iiro Laiho <ilmaisin>
Tue Aug 23 14:45:11 2016, comment #1:

If you know the cookie it should be quite easy. You can use option add_header in your davfs2.conf file for this. An entry should look like this:

add_header Cookie "SESSID=abcdefghijk"

Of course you must use the cookie you got using your browser. For details see "man davfs2.conf".

If the cookie changes from login to login it will become tiresome to edit your davfs2.conf every time. So you might want to create some start script to automate this. Mount option "conf=" ( see "man mount.davfs") allows you to set the name of a temporary conf file that is created by your script. If you know the form used by your server it should even be possible to retrieve the cookie automatically using a command line tool like curl.

If it works and you successfully create such a script then this might be usefull for other users too. Please report about your experience.

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue Aug 23 09:40:39 2016, original submission:

Could davfs2 somehow be made to support login with forms and cookies? That would enable to users to mount OneDrive for Business accounts to Linux machines.

Would it be possible, for example, to do this by using cookies of a web browser?

Iiro Laiho <ilmaisin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wbaumann (Posted a comment)
  • -unavailable- added by ilmaisin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Sep 2 08:18:21 2016wbaumannStatusIn Progress=>Wont Do
    Tue Aug 23 14:45:11 2016wbaumannStatusNone=>In Progress
      Assigned toNone=>wbaumann

    Back to the top


    Powered by Savane 3.1-cleanup1