Smugmug web service ported to O2 : Host authentication required

Gilles Caulier caulier.gilles at gmail.com
Sun Jun 3 14:45:48 BST 2018


Hi Than,

I'm currently very busy to complete evening classes in school, so i cannot
check your code for the next few days.

I will be more available at next week end. I will checkout your branch and
test your code.

Best

Gilles

2018-06-02 23:49 GMT+02:00 Thanh Trung Dinh <dinhthanhtrung1996 at gmail.com>:

> Hi everyone,
>
> I'm porting digiKam web services with library O2, qt library for OAuth.
> Working on Smugmug, I'm stuck with an error that I didn't understand.
>
> Smugmug uses OAuth 1.0 as authentication method, like Flickr, so I used
> same
> methods to login, get user data, post photos, etc. In fact, I can login and
> get access token using O2 methods. I also verified that the token I got is
> the right one. However, whenever I tried to use that token to get/post
> something, QNetworkReply returns with error 204
> (AuthenticationRequiredError) and error message : "Host authentication
> required". Besides, Smugmug has endpoints that don't require token to
> access
> (e.g GET /api/v2/user/<nickname>). So when I tried normal GET method of
> QNetworkManager it worked, but when I used specific method for GET in O2
> (which prepares token and other necessary headers in the url request), that
> error appeared,
>
> Did anyone see this message error when working with authentication before?
> I
> really appreciate any help and guide, since I am really stuck here.
>
> Thanks,
>
> Thanh-Trung Dinh
>
>
>
> --
> Sent from: http://digikam.1695700.n4.nabble.com/digikam-devel-
> f1695701.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20180603/5a52e00e/attachment.html>


More information about the Digikam-devel mailing list