pub struct PublicConfig {
pub issuer: String,
pub cli_client_id: String,
pub audience: Option<String>,
}Expand description
What the TraceVault 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.
Trait Implementations§
Source§impl Clone for PublicConfig
impl Clone for PublicConfig
Auto Trait Implementations§
impl Freeze 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