Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
None
Description
Custom URLs schemes can be used to launch mobile apps and send data to apps (https://doc.qt.io/qt-6/qdesktopservices.html#setUrlHandler ). It is also common for OAuth2 to use such custom URLs as the redirect URI (https://www.oauth.com/oauth2-servers/redirect-uris/redirect-uris-native-apps/ ).
Currently, if we want to use a custom redirect URI like myapp://callback, then we would need to:
- Implement a custom QAbstractOAuthReplyHandler subclass
- Call QDesktopServices::setUrlHandler() to listen for the custom URL
- Extract the OAuth2 token from the URL
- Pass the token to our custom reply handler
It would be very helpful to have a helper class to take care of the basic steps to achieve this.
Attachments
Issue Links
- is replaced by
-
QTBUG-124338 [OAuth] Support private URI scheme redirection (Android, iOS)
- Closed
-
QTBUG-124339 [OAuth] Support claimed HTTPS URI scheme redirection (Android, iOS)
- Closed
-
QTBUG-125344 [OAuth]Change doc links to intra-doc links
- Closed