pub enum LoginFlow {
Browser {
redirect: String,
},
Code {
code: String,
state: String,
},
Password {
username: String,
password: String,
},
Session {
ttl_secs: Option<u64>,
ceiling: Option<Vec<String>>,
},
}Expand description
How a caller signs in (auth.login {flow: …}). On the wire, externally
tagged: {"browser": {"redirect": …}}, {"code": {"code", "state"}},
{"password": {"username", "password"}}, {"session": {"ttl_secs", "ceiling"}}.
Variants§
Browser
A person, from a client with a browser: answered with the URL to
open (login_url {url, state}); the browser comes back to
redirect (a loopback address the client listens on) with a
one-time code.
Code
The browser came back: trade the code for a session. Single-use, bound to the state.
Password
Where a provider takes a password.
Session
A session on a connection that is already someone — a key proof at
the upgrade (IDENTITY-40), or a session — bounded by ceiling
(role@SCOPE / grant@SCOPE entries) and lasting ttl_secs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoginFlow
impl<'de> Deserialize<'de> for LoginFlow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LoginFlow
Source§impl JsonSchema for LoginFlow
impl JsonSchema for LoginFlow
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for LoginFlow
Auto Trait Implementations§
impl Forget for LoginFlow
impl Freeze for LoginFlow
impl Move for LoginFlow
impl RefUnwindSafe for LoginFlow
impl Send for LoginFlow
impl Sync for LoginFlow
impl Unpin for LoginFlow
impl UnsafeUnpin for LoginFlow
impl UnwindSafe for LoginFlow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.