pub struct RevocationConfig {
pub client_id: String,
pub client_secret: String,
pub fail_open: bool,
}Expand description
Credentials for the RFC 7662 introspection round-trip that backs revocation checking.
They must belong to a confidential client that is either the
issuing client or a runtime-client of the Resource named in the token’s
aud. Since authserver 0.1.2 any other caller — including a public
(secret-less) client — gets {"active": false} for every token, and the
verifier would reject all traffic as revoked. Empty client_id or
client_secret is therefore refused when the resource is constructed.
Link the resource server’s client with
authserver admin resource runtime-client add --client-id <rs-client-id> --slug <resource-slug>.
Fields§
§client_id: String§client_secret: String§fail_open: boolTrait Implementations§
Source§impl Clone for RevocationConfig
impl Clone for RevocationConfig
Auto Trait Implementations§
impl Freeze for RevocationConfig
impl RefUnwindSafe for RevocationConfig
impl Send for RevocationConfig
impl Sync for RevocationConfig
impl Unpin for RevocationConfig
impl UnsafeUnpin for RevocationConfig
impl UnwindSafe for RevocationConfig
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