pub struct LoginOptions {
pub issuer: String,
pub audience: Vec<String>,
pub connection: String,
pub client_id: String,
pub identity_provider: String,
pub org_name: String,
pub identity: String,
pub no_refresh_token: bool,
pub open_url: Option<UrlOpener>,
pub out: Option<MessageSink>,
}Expand description
Configures browser_login.
Fields§
§issuer: StringDefaults to DEFAULT_ISSUER.
audience: Vec<String>What the login’s tokens may be minted for. Empty means default_login_audiences: the
sessions service plus Chainguard’s account API.
connection: StringPreselects a social login: “github”, “google-oauth2” or “gitlab”. Empty lets the page ask.
client_id: StringDefaults to “auth0”, as chainctl sends. Ignored with identity_provider or org_name.
identity_provider: StringThe ID of an organization’s custom identity provider.
org_name: StringThe name of an organization with a custom identity provider (verified). At most one of
identity_provider and org_name.
identity: StringAn assumable identity to log in as (optional).
no_refresh_token: boolSkips asking for a refresh token. Without one, every token after the first needs another browser login.
open_url: Option<UrlOpener>Opens the login page. Defaults to open_browser.
out: Option<MessageSink>Receives the “open this URL” message. Defaults to stderr.
Trait Implementations§
Source§impl Clone for LoginOptions
impl Clone for LoginOptions
Source§fn clone(&self) -> LoginOptions
fn clone(&self) -> LoginOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoginOptions
impl Debug for LoginOptions
Source§impl Default for LoginOptions
impl Default for LoginOptions
Source§fn default() -> LoginOptions
fn default() -> LoginOptions
Auto Trait Implementations§
impl Freeze for LoginOptions
impl !RefUnwindSafe for LoginOptions
impl Send for LoginOptions
impl Sync for LoginOptions
impl Unpin for LoginOptions
impl UnsafeUnpin for LoginOptions
impl !UnwindSafe for LoginOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].