Smugmug web service ported to O2 : Host authentication required

Maik Qualmann metzpinguin at
Sun Jun 3 19:13:19 BST 2018

Hi Thanh,

Look smugwindow.cpp: 232 the nickName is always empty. Therefore your login 
function will never be executed. I think login with nickname does not exist 
anymore, so the dialog for entering email and password can be removed as well. 
The LINK to Smugmug then works through the website, but the return Json code 
has changed.


Am Samstag, 2. Juni 2018, 23:49:42 CEST schrieb Thanh Trung Dinh:
> 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:

More information about the Digikam-devel mailing list