pub struct DeviceAuthProof {
pub device_code: String,
pub device_public_key: Vec<u8>,
pub signature: Vec<u8>,
}Expand description
Proof that a user-approved device authorization completed. The
CLI presents the device_code returned by
CreateDeviceAuthorization plus a signature over device:{code}
using the device keypair generated locally. Server completes the
hand-off: registers the device_root row if not present, mints a
fresh Biscuit bound to the device pop key.
Fields§
§device_code: String§device_public_key: Vec<u8>Raw Ed25519 public-key bytes. Server stores it on first hand-off
(device_roots row) and signs subsequent renewals against it via
KeypairProof.
signature: Vec<u8>Signature over the bytes device:{device_code} using the
device’s private key. Replaces the old proof field on
ExchangeDeviceAuthorizationRequest.
Trait Implementations§
Source§impl Clone for DeviceAuthProof
impl Clone for DeviceAuthProof
Source§fn clone(&self) -> DeviceAuthProof
fn clone(&self) -> DeviceAuthProof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceAuthProof
impl Debug for DeviceAuthProof
Source§impl Default for DeviceAuthProof
impl Default for DeviceAuthProof
impl Eq for DeviceAuthProof
Source§impl Hash for DeviceAuthProof
impl Hash for DeviceAuthProof
Source§impl Message for DeviceAuthProof
impl Message for DeviceAuthProof
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for DeviceAuthProof
impl PartialEq for DeviceAuthProof
impl StructuralPartialEq for DeviceAuthProof
Auto Trait Implementations§
impl Freeze for DeviceAuthProof
impl RefUnwindSafe for DeviceAuthProof
impl Send for DeviceAuthProof
impl Sync for DeviceAuthProof
impl Unpin for DeviceAuthProof
impl UnsafeUnpin for DeviceAuthProof
impl UnwindSafe for DeviceAuthProof
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