| 154 | } |
| 155 | |
| 156 | QString OAuthService::computeCodeChallenge(const QString &verifier) |
| 157 | { |
| 158 | QByteArray hash = QCryptographicHash::hash(verifier.toLatin1(), QCryptographicHash::Sha256); |
| 159 | return hash.toBase64(QByteArray::Base64UrlEncoding | QByteArray::OmitTrailingEquals); |
| 160 | } |
| 161 | |
| 162 | void OAuthService::startAuth(const QString &provider, const QString &tokenPath) |
| 163 | { |
nothing calls this directly
no outgoing calls
no test coverage detected