pub struct PublicClient { /* private fields */ }Expand description
PKCE-only / browser-style client. Wraps an internal Client configured
with no API key — only the helper surface suitable for public clients is
exposed here.
Implementations§
Source§impl PublicClient
impl PublicClient
Sourcepub fn new(client_id: impl Into<String>) -> Self
pub fn new(client_id: impl Into<String>) -> Self
Construct a public client with the given client_id. Uses the default
base URL.
Sourcepub fn with_base_url(
client_id: impl Into<String>,
base_url: impl Into<String>,
) -> Self
pub fn with_base_url( client_id: impl Into<String>, base_url: impl Into<String>, ) -> Self
Construct a public client with a custom base URL.
Build an AuthKit PKCE authorization URL. Always generates fresh PKCE
- state.
Build an SSO PKCE authorization URL. Always generates fresh PKCE
- state.
Auto Trait Implementations§
impl !RefUnwindSafe for PublicClient
impl !UnwindSafe for PublicClient
impl Freeze for PublicClient
impl Send for PublicClient
impl Sync for PublicClient
impl Unpin for PublicClient
impl UnsafeUnpin for PublicClient
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