Move access token to header
This commit is contained in:
parent
7f69c71814
commit
916c0d48af
2 changed files with 23 additions and 69 deletions
|
|
@ -181,6 +181,10 @@ signals:
|
|||
private:
|
||||
QNetworkReply *makeUploadRequest(QSharedPointer<QIODevice> iodev);
|
||||
QJsonObject getUploadReply(QNetworkReply *reply);
|
||||
void setupAuth(QNetworkRequest &req)
|
||||
{
|
||||
req.setRawHeader("Authorization", QString("Bearer %1").arg(token_).toLocal8Bit());
|
||||
}
|
||||
|
||||
// Client API prefix.
|
||||
QString clientApiUrl_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue