pub struct PublicConfig {
pub issuer: String,
pub cli_client_id: String,
pub audience: Option<String>,
pub bazaar_mcp_url: Option<String>,
}Expand description
What the Visdom server publishes about its identity provider.
This type exists only for the CONFIGURED case: “no Keycloak here” is an
error (OidcError::NoKeycloak), not a PublicConfig with empty fields,
so no caller can accidentally proceed with an empty issuer.
Fields§
§issuer: String§cli_client_id: String§audience: Option<String>The audience the server expects in an access token’s aud. Optional so
the CLI keeps working against a server that does not publish it; used
only to sharpen the diagnosis when /auth/me rejects a fresh token.
bazaar_mcp_url: Option<String>The bazaar (context) MCP endpoint of this installation, when the server
publishes it. visdom uses it to check an agent’s MCP registration.
Trait Implementations§
Source§impl Clone for PublicConfig
impl Clone for PublicConfig
Auto Trait Implementations§
impl Forget for PublicConfig
impl Freeze for PublicConfig
impl Move for PublicConfig
impl RefUnwindSafe for PublicConfig
impl Send for PublicConfig
impl Sync for PublicConfig
impl Unpin for PublicConfig
impl UnsafeUnpin for PublicConfig
impl UnwindSafe for PublicConfig
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