MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / User

Class User

src/sql/src/session/user.rs:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72/// Identifies a user.
73#[derive(Debug, Clone, Serialize)]
74pub struct User {
75 /// The name of the user within the system.
76 pub name: String,
77 /// Metadata about this user in an external system.
78 pub external_metadata: Option<ExternalUserMetadata>,
79 /// Metadata about this user stored in the catalog,
80 /// such as its role's `SUPERUSER` attribute.
81 pub internal_metadata: Option<InternalUserMetadata>,
82 /// The authenticator that authenticated this user.
83 /// If `None`, the user hasn't been authenticated.
84 pub authenticator_kind: Option<AuthenticatorKind>,
85 /// Groups extracted from JWT claims during OIDC authentication.
86 /// None for non-OIDC connections or when the group claim is absent.
87 pub groups: Option<Vec<String>>,
88}
89
90impl From<&User> for mz_pgwire_common::UserMetadata {
91 fn from(user: &User) -> mz_pgwire_common::UserMetadata {

Callers 15

test_multiple_filesFunction · 0.50
fromMethod · 0.50
fold_role_nameMethod · 0.50
test_read_from_cacheFunction · 0.50
test_disabling_cacheFunction · 0.50
updating_cache_valuesFunction · 0.50
test_invalidateFunction · 0.50
mainFunction · 0.50
gh_9160_reproFunction · 0.50

Calls

no outgoing calls

Tested by 15

test_multiple_filesFunction · 0.40
test_read_from_cacheFunction · 0.40
test_disabling_cacheFunction · 0.40
test_invalidateFunction · 0.40
test_merge_updateFunction · 0.40
test_rowFunction · 0.40
test_row_without_hintFunction · 0.40
test_row_without_errorFunction · 0.40