pub enum PersonaRequest {
GetAuthState {
responder: PersonaGetAuthStateResponder,
},
RegisterAuthListener {
payload: AuthTargetRegisterAuthListenerRequest,
responder: PersonaRegisterAuthListenerResponder,
},
GetLifetime {
responder: PersonaGetLifetimeResponder,
},
}
Expand description
A protocol that exposes basic information about a persona and access to the authentication tokens that are visible through it.
Note a Persona purposefully does not provide access to a long term identifier for the persona. This is to support components in the system that work with short lived identifiers (e.g. SessionManager), but note that long term identifiers can usually still be derived via the TokenManger protocol.
Variants§
GetAuthState
Fields
responder: PersonaGetAuthStateResponder
Returns the current AuthState
of the target.
Returns: auth_state
The target’s current authentication state.
RegisterAuthListener
Fields
responder: PersonaRegisterAuthListenerResponder
Connects a channel that will receive changes in the authentication state of the target.
listener
[required] The client end of an AuthListener
channel
initial_state
If true, the listener will receive the initial auth
state in addition to any changes.
granularity
An AuthChangeGranularity
expressing the magnitude of
change in authentication state that will lead to
AuthStateChange events.
GetLifetime
Fields
responder: PersonaGetLifetimeResponder
Returns the lifetime of this persona.
Implementations§
source§impl PersonaRequest
impl PersonaRequest
pub fn into_get_auth_state(self) -> Option<PersonaGetAuthStateResponder>
pub fn into_register_auth_listener( self ) -> Option<(AuthTargetRegisterAuthListenerRequest, PersonaRegisterAuthListenerResponder)>
pub fn into_get_lifetime(self) -> Option<PersonaGetLifetimeResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL