2020-11-06 Fred Gleason <fredg@paravelsystems.com>

* Modified Webget to use tickets for authenticating media transfer
	requests.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-11-06 18:34:53 -05:00
parent b4002b2357
commit 0385548139
6 changed files with 59 additions and 19 deletions

View File

@@ -2,7 +2,7 @@
//
// Abstract a Rivendell User
//
// (C) Copyright 2002-2004,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -21,6 +21,8 @@
#ifndef RDUSER_H
#define RDUSER_H
#include <QDateTime>
class RDUser
{
public:
@@ -98,7 +100,7 @@ class RDUser
QStringList services() const;
bool createTicket(QString *ticket,QDateTime *expire_dt,
const QHostAddress &client_addr,
const QDateTime &start_dt) const;
QDateTime start_dt=QDateTime()) const;
static bool ticketIsValid(const QString &ticket,
const QHostAddress &client_addr,
QString *username=NULL,QDateTime *expire_dt=NULL);