MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / createPasswordAuthData

Function createPasswordAuthData

src/Access/UsersConfigParser.cpp:133–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 AuthenticationData createPasswordAuthData(
134 AuthenticationType type,
135 const String & password,
136 const std::optional<OneTimePasswordSecret> & otp_secret,
137 bool validate,
138 bool is_hash)
139 {
140 AuthenticationData auth_data(type);
141 if (is_hash)
142 auth_data.setPasswordHashHex(password, otp_secret, validate);
143 else
144 auth_data.setPassword(password, otp_secret, validate);
145 return auth_data;
146 }
147
148 AuthenticationData parseUserAuthMethod(
149 const Poco::Util::AbstractConfiguration & config,

Callers 1

parseUserAuthMethodFunction · 0.85

Calls 2

setPasswordHashHexMethod · 0.80
setPasswordMethod · 0.45

Tested by

no test coverage detected