OAuth2 authentication provider.
More...
#include <XXAuthProviderOAuth.h>
OAuth2 authentication provider.
redirect url is http://127.0.0.1:1234/
◆ State
| Enumerator |
|---|
| Initial | |
| AuthUser | |
| Update | |
| Blocked | |
| Ready | |
◆ OAuth()
| XX::AuthProvider::OAuth::OAuth |
( |
QObject * | parent | ) |
|
◆ authorizeUser()
| virtual bool XX::AuthProvider::OAuth::authorizeUser |
( |
| ) |
|
|
protectedvirtual |
◆ getFlow()
| QOAuth2AuthorizationCodeFlow * XX::AuthProvider::OAuth::getFlow |
( |
| ) |
const |
◆ getTokenInfo()
| QJsonObject XX::AuthProvider::OAuth::getTokenInfo |
( |
QByteArray | token = QByteArray() | ) |
const |
◆ loadRefreshToken()
| virtual QString XX::AuthProvider::OAuth::loadRefreshToken |
( |
| ) |
|
|
protectedvirtual |
◆ saveRefreshToken()
| virtual void XX::AuthProvider::OAuth::saveRefreshToken |
( |
const QString & | refreshToken | ) |
|
|
protectedvirtual |
◆ setCustomFlow()
| void XX::AuthProvider::OAuth::setCustomFlow |
( |
QOAuth2AuthorizationCodeFlow * | oauthFlow | ) |
|
◆ setFinalHTML()
| void XX::AuthProvider::OAuth::setFinalHTML |
( |
const QString & | html | ) |
|
◆ setFinalRedirect()
| void XX::AuthProvider::OAuth::setFinalRedirect |
( |
const QString & | url | ) |
|
◆ setStandardFlow()
| void XX::AuthProvider::OAuth::setStandardFlow |
( |
const QString & | baseAuthUrl, |
|
|
const QString & | clientId, |
|
|
const QString & | clientSecret ) |
◆ setTokenInfoUrl()
| void XX::AuthProvider::OAuth::setTokenInfoUrl |
( |
const QString | url | ) |
|
◆ update()
| virtual bool XX::AuthProvider::OAuth::update |
( |
| ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file: