[][src]Struct pachyderm::auth::GetOneTimePasswordRequest

pub struct GetOneTimePasswordRequest {
    pub subject: String,
    pub ttl: i64,
}

GetOneTimePassword allows users to generate short-lived (~30s) tokens that can be passed to Authenticate() (via AuthenticateRequest.one_time_password) and exchanged for a longer-lived pachyderm token. This is more secure than GetAuthToken, which produces long-lived authorization tokens.

Fields

subject: String

If the caller is an admin, GetOneTimePassword() can return a code for any user (useful for testing). If the caller is not an admin, GetOneTimePassword() will return an authentication code for the caller if username is unset or set to the caller's username (and will return an error otherwise)

ttl: i64

ttl indicates the requested (approximate) remaining lifetime of this token, in seconds

Trait Implementations

impl Clone for GetOneTimePasswordRequest[src]

impl Debug for GetOneTimePasswordRequest[src]

impl Default for GetOneTimePasswordRequest[src]

impl Message for GetOneTimePasswordRequest[src]

impl PartialEq<GetOneTimePasswordRequest> for GetOneTimePasswordRequest[src]

impl StructuralPartialEq for GetOneTimePasswordRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]