pub struct RadiusOAuth {
pub name: String,
pub gateway: String,
pub callback_port: u16,
}Expand description
The sign-in of one Radius gateway.
Fields§
§name: StringProvider display name, shown in prompts.
gateway: StringGateway origin.
callback_port: u16Loopback port of the browser callback.
Implementations§
Source§impl RadiusOAuth
impl RadiusOAuth
Sourcepub fn new(name: &str, gateway: &str) -> RadiusOAuth
pub fn new(name: &str, gateway: &str) -> RadiusOAuth
The sign-in for the gateway at gateway.
Trait Implementations§
Source§impl Clone for RadiusOAuth
impl Clone for RadiusOAuth
Source§impl Debug for RadiusOAuth
impl Debug for RadiusOAuth
Source§impl OAuthProvider for RadiusOAuth
impl OAuthProvider for RadiusOAuth
Source§fn is_subscription(&self) -> bool
fn is_subscription(&self) -> bool
Whether the account is a subscription, which the login menu labels.
Source§fn login<'a>(
&'a self,
interaction: &'a Interaction,
_options: &'a LoginOptions,
) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
fn login<'a>( &'a self, interaction: &'a Interaction, _options: &'a LoginOptions, ) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
Runs the sign-in.
Source§fn refresh<'a>(
&'a self,
credential: &'a OAuthCredential,
cancel: &'a CancellationToken,
) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
fn refresh<'a>( &'a self, credential: &'a OAuthCredential, cancel: &'a CancellationToken, ) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
Exchanges the refresh token for a new credential.
Source§fn login_label(&self) -> Option<&str>
fn login_label(&self) -> Option<&str>
Label of the login menu entry, when the provider sets one.
Auto Trait Implementations§
impl Forget for RadiusOAuth
impl Freeze for RadiusOAuth
impl RefUnwindSafe for RadiusOAuth
impl Send for RadiusOAuth
impl Sync for RadiusOAuth
impl Unpin for RadiusOAuth
impl UnsafeUnpin for RadiusOAuth
impl UnwindSafe for RadiusOAuth
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