Skip to content

Commit a0de631

Browse files
committed
Add ClientAuthenticationDetails::authentication_class_equals
1 parent f91bfba commit a0de631

File tree

1 file changed

+4
-0
lines changed
  • src/commons/authentication

1 file changed

+4
-0
lines changed

src/commons/authentication/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ impl ClientAuthenticationDetails {
9898
pub async fn resolve_class(&self, client: &Client) -> Result<AuthenticationClass, Error> {
9999
AuthenticationClass::resolve(client, &self.authentication_class_ref).await
100100
}
101+
102+
pub fn authentication_class_equals(&self, authentication_class_name: &str) -> bool {
103+
self.authentication_class_ref == authentication_class_name
104+
}
101105
}
102106

103107
/// An enum of supported authentication providers. Each variant contains

0 commit comments

Comments
 (0)