2024-07-23 11:49:07 +02:00
|
|
|
#include "RiaOAuthHttpServerReplyHandler.h"
|
2024-02-28 08:10:52 +01:00
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QUrl>
|
2024-09-06 10:46:08 +02:00
|
|
|
#include <QtNetworkAuth/QAbstractOAuth>
|
|
|
|
|
#include <QtNetworkAuth/QOAuthHttpServerReplyHandler>
|
2024-02-28 08:10:52 +01:00
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2024-07-23 11:49:07 +02:00
|
|
|
RiaOAuthHttpServerReplyHandler::RiaOAuthHttpServerReplyHandler( quint16 port, QObject* parent )
|
2024-02-28 08:10:52 +01:00
|
|
|
: QOAuthHttpServerReplyHandler( port, parent )
|
|
|
|
|
, m_port( port )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2024-07-23 11:49:07 +02:00
|
|
|
QString RiaOAuthHttpServerReplyHandler::callback() const
|
2024-02-28 08:10:52 +01:00
|
|
|
{
|
|
|
|
|
const QUrl url( QString::fromLatin1( "http://localhost:%1/" ).arg( m_port ) );
|
|
|
|
|
return url.toString( QUrl::EncodeDelimiters );
|
|
|
|
|
}
|