pub struct SessionUser {
pub groups: Option<Vec<String>>,
pub iss: Option<String>,
pub logged_in: Option<bool>,
pub login_url: Option<String>,
pub logout_url: Option<String>,
pub username: Option<String>,
}Fields§
§groups: Option<Vec<String>>Groups is the caller’s group list, always empty here: this console authorizes on the platform SuperAdmin fact alone, not on argocd RBAC groups. Absent for an anonymous caller.
iss: Option<String>Iss is the token issuer as the SPA expects to see it — the literal "argocd", so the UI never triggers an SSO redirect of its own. Absent for an anonymous caller.
logged_in: Option<bool>LoggedIn reports whether this browser holds a session this console accepts.
login_url: Option<String>LoginURL is where an anonymous caller signs in. Absent once signed in.
logout_url: Option<String>LogoutURL is where a signed-in caller ends the session. Absent when anonymous.
username: Option<String>Username is the validated principal’s user ID — the opaque gateway id, which is what argocd’s UI renders as the signed-in user here — or "admin" when the principal carries none. Absent when anonymous.
Implementations§
Source§impl SessionUser
impl SessionUser
pub fn new() -> SessionUser
Trait Implementations§
Source§impl Clone for SessionUser
impl Clone for SessionUser
Source§fn clone(&self) -> SessionUser
fn clone(&self) -> SessionUser
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more