summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauthhttpserverreplyhandler.h
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2024-11-29 13:16:52 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2024-12-04 14:27:11 +0200
commit6e08270c036fc1f3883d172a72c673b9a44431b0 (patch)
tree87d1e881a1f64836b734439b1fb22a224820d4b5 /src/oauth/qoauthhttpserverreplyhandler.h
parentb1e67440a6c2fbccdecd599def6f9822a31d5b07 (diff)
Add a method to manually define http callback hostname
This allows setting an arbitrary hostname in case 'localhost' or IP literal are not preferable: http://localhost:1234/cb // pre-existing http://127.0.0.1:1234/cb // pre-existing http://my.localnet:1234/cb // new, possible with this commit [ChangeLog][QOAuthHttpServerReplyHandler] Added new API for manually specifying the callback/redirect_uri hostname Task-number: QTBUG-130159 Change-Id: I0d218fc43ea0dec35383c03b313c7f9d5f0f8593 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/oauth/qoauthhttpserverreplyhandler.h')
-rw-r--r--src/oauth/qoauthhttpserverreplyhandler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/oauth/qoauthhttpserverreplyhandler.h b/src/oauth/qoauthhttpserverreplyhandler.h
index 5a77081..00be787 100644
--- a/src/oauth/qoauthhttpserverreplyhandler.h
+++ b/src/oauth/qoauthhttpserverreplyhandler.h
@@ -35,6 +35,9 @@ public:
QString callbackPath() const;
void setCallbackPath(const QString &path);
+ QString callbackHost() const;
+ void setCallbackHost(const QString &path);
+
QString callbackText() const;
void setCallbackText(const QString &text);