Drop the AGPL license in favor of a source-available license. See the blog post [1] for details. [1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
26 lines
467 B
C++
26 lines
467 B
C++
/*
|
|
* Copyright (C) 2016-present ScyllaDB
|
|
*
|
|
* Modified by ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.0 and Apache-2.0)
|
|
*/
|
|
|
|
#include "auth/authenticated_user.hh"
|
|
|
|
namespace auth {
|
|
|
|
authenticated_user::authenticated_user(std::string_view name)
|
|
: name(sstring(name)) {
|
|
}
|
|
|
|
static const authenticated_user the_anonymous_user{};
|
|
|
|
const authenticated_user& anonymous_user() noexcept {
|
|
return the_anonymous_user;
|
|
}
|
|
|
|
}
|