SessionUser class

Constructors

SessionUser({List<String> groups = const [], String? iss, bool? loggedIn, String? loginUrl, String? logoutUrl, String? username})
Returns a new SessionUser instance.

Properties

groups ↔ List<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.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
iss ↔ 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.
getter/setter pair
loggedIn ↔ bool?
LoggedIn reports whether this browser holds a session this console accepts.
getter/setter pair
loginUrl ↔ String?
LoginURL is where an anonymous caller signs in. Absent once signed in.
getter/setter pair
logoutUrl ↔ String?
LogoutURL is where a signed-in caller ends the session. Absent when anonymous.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
username ↔ 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.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → SessionUser?
Returns a new SessionUser instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SessionUser>
mapFromJson(dynamic json) → Map<String, SessionUser>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SessionUser>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.