add jwt token as a std:;string
This commit is contained in:
parent
8bc22880a4
commit
96a96f4865
|
@ -45,10 +45,10 @@ class ZM_RtspServer_Authenticator : public xop::Authenticator {
|
||||||
|
|
||||||
if (query.has("jwt_token")) {
|
if (query.has("jwt_token")) {
|
||||||
const QueryParameter *jwt_token = query.get("jwt_token");
|
const QueryParameter *jwt_token = query.get("jwt_token");
|
||||||
user = zmLoadTokenUser(jwt_token->firstValue().c_str(), false);
|
user = zmLoadTokenUser(jwt_token->firstValue(), false);
|
||||||
} else if (query.has("token")) {
|
} else if (query.has("token")) {
|
||||||
const QueryParameter *jwt_token = query.get("token");
|
const QueryParameter *jwt_token = query.get("token");
|
||||||
user = zmLoadTokenUser(jwt_token->firstValue().c_str(), false);
|
user = zmLoadTokenUser(jwt_token->firstValue(), false);
|
||||||
} else if (strcmp(config.auth_relay, "none") == 0) {
|
} else if (strcmp(config.auth_relay, "none") == 0) {
|
||||||
if (query.has("username")) {
|
if (query.has("username")) {
|
||||||
std::string username = query.get("username")->firstValue();
|
std::string username = query.get("username")->firstValue();
|
||||||
|
|
Loading…
Reference in New Issue