pub struct AccessValidator { /* private fields */ }Expand description
Verifies Access assertions for one application audience.
Implementations§
Source§impl AccessValidator
impl AccessValidator
Sourcepub fn new(team_domain: &str, audience: &str) -> Result<Self>
pub fn new(team_domain: &str, audience: &str) -> Result<Self>
team_domain is team.cloudflareaccess.com (https:// is implied), and
must be https unless it is loopback (for tests). audience is the
Access application’s AUD tag.
Sourcepub fn with_fetcher(self, fetcher: JwksFetcher) -> Self
pub fn with_fetcher(self, fetcher: JwksFetcher) -> Self
Replace the JWKS fetcher.
pub fn issuer(&self) -> &str
pub fn audience(&self) -> &str
pub fn certs_url(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AccessValidator
impl !RefUnwindSafe for AccessValidator
impl !UnwindSafe for AccessValidator
impl Send for AccessValidator
impl Sync for AccessValidator
impl Unpin for AccessValidator
impl UnsafeUnpin for AccessValidator
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