Open mrow4a opened 3 years ago
@mmattel I might need help on where to place this content. Any ideas?
user manual (I think)
Sounds more like dev docs to me. @mmattel, please go ahead and find a good spot.
I had an intensive and productive call today with @mrow4a. The best location will be the user manual in subsection integration. Just need a go to proceed.
Ok, if you think that's the right spot, go for it.
@mmattel any progress? do you need any clarifications?
@mmattel as discussed I attempted demo.
@mmattel is the provided info enough?
updated documentation content in top post
WHAT Needs to be Documented?
https://github.com/owncloud/core/pull/38486 https://github.com/owncloud/enterprise/issues/4196
WHERE Does This Need To Be Documented (Link)?
user manual (I think)
WHY Should This Change Be Made?
to allow users use authentication popup window in various clients e.g. Excel/Browser to authenticate to OCS API
(Optional) What Type Of Content Change Is This?
(Optional) Which Manual Does This Relate To?
Doc contents
Issue
Before owncloud 10 (seems also oc10.5) one could request password window asking username:password browsing to URL https://whatever/remote.php/dav/files/whateveruser/whatever
This behavior got depreciated in oc10
Web Browser using Headers Extensions
This method levarages adding to browser custom header using e.g. Chrome ModHeader Extension
Try accessing API in web browser, it will fail
Create APP Password in ownCloud personal settings
Add header
OC-RequestAppPassword
to indicate we want to request interactive app password authenticationAuthenticate using created app password and enjoy
Excel
Javascript
Using https://github.com/owncloud/owncloud-sdk
I cannot get around problem with CORS on code in [1]. However, there is another way with using owncloud-sdk. This snippet should work but did not test as this would require me to build brand new dev environment and application, effort is pretty high (I am not JavaScript expert...)
[1]