pub struct OAuthPreviewConfig {
pub client_id: String,
pub authorization_endpoint: String,
pub token_endpoint: String,
pub scopes: Vec<String>,
}Expand description
OAuth configuration for browser-based PKCE flow.
When present, the preview server exposes /api/auth/* endpoints and
includes this config in the /api/config response so the browser JS
can initiate the OAuth popup flow.
Fields§
§client_id: StringOAuth client ID for the preview app.
Authorization endpoint URL (for user login redirect).
token_endpoint: StringToken endpoint URL (for code-to-token exchange).
scopes: Vec<String>Requested OAuth scopes.
Trait Implementations§
Source§impl Clone for OAuthPreviewConfig
impl Clone for OAuthPreviewConfig
Source§fn clone(&self) -> OAuthPreviewConfig
fn clone(&self) -> OAuthPreviewConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 OAuthPreviewConfig
impl Debug for OAuthPreviewConfig
Source§impl Default for OAuthPreviewConfig
impl Default for OAuthPreviewConfig
Source§fn default() -> OAuthPreviewConfig
fn default() -> OAuthPreviewConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OAuthPreviewConfig
impl RefUnwindSafe for OAuthPreviewConfig
impl Send for OAuthPreviewConfig
impl Sync for OAuthPreviewConfig
impl Unpin for OAuthPreviewConfig
impl UnsafeUnpin for OAuthPreviewConfig
impl UnwindSafe for OAuthPreviewConfig
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