28 #include "qgrpccredentials.h"
30 namespace QtProtobuf {
32 constexpr
char defaultUserFieldName[] =
"user-name";
33 constexpr
char defaultPasswordFieldName[] =
"user-password";
45 template<
const char *UserFieldName = defaultUserFieldName,
46 const char *PasswordFieldName = defaultPasswordFieldName>
56 m_map(QtProtobuf::QGrpcCredentialMap{{QLatin1String(UserFieldName), QVariant::fromValue(userName)},
57 {QLatin1String(PasswordFieldName), QVariant::fromValue(password)}})
61 QtProtobuf::QGrpcCredentialMap operator()() {
65 QGrpcUserPasswordCredentials() =
default;
66 QtProtobuf::QGrpcCredentialMap m_map;
The QGrpcCallCredentials is base class for gRPC call credentials.
Definition: qgrpccredentials.h:45
The QGrpcUserPasswordCredentials class is reference implementation of simple user-password call authe...
Definition: qgrpcuserpasswordcredentials.h:48
QGrpcUserPasswordCredentials(const QString &userName, const QString &password)
QGrpcUserPasswordCredentials constucts QGrpcUserPasswordCredentials.
Definition: qgrpcuserpasswordcredentials.h:55