pub struct FlowOptions {
pub server_url: String,
pub authorization_code: Option<String>,
pub iss: Option<String>,
pub scope: Option<String>,
pub resource_metadata_url: Option<String>,
pub authorization_server_metadata_url: Option<String>,
pub skip_refresh: bool,
pub fetch: Fetch,
}Expand description
pi’s OAuthFlowOptions: what one run of the flow needs.
Fields§
§server_url: StringThe MCP server.
The code an authorization response delivered.
iss: Option<String>The iss parameter of that response (RFC 9207).
scope: Option<String>Scopes to request.
resource_metadata_url: Option<String>resource_metadata of the server’s challenge.
Authorization server metadata to use instead of discovery.
skip_refresh: boolGo straight to authorization instead of refreshing stored tokens.
fetch: FetchHow requests are sent.
Trait Implementations§
Source§impl Clone for FlowOptions
impl Clone for FlowOptions
Source§impl Debug for FlowOptions
impl Debug for FlowOptions
Auto Trait Implementations§
impl Freeze for FlowOptions
impl RefUnwindSafe for FlowOptions
impl Send for FlowOptions
impl Sync for FlowOptions
impl Unpin for FlowOptions
impl UnsafeUnpin for FlowOptions
impl UnwindSafe for FlowOptions
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