We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f91bfba commit a0de631Copy full SHA for a0de631
src/commons/authentication/mod.rs
@@ -98,6 +98,10 @@ impl ClientAuthenticationDetails {
98
pub async fn resolve_class(&self, client: &Client) -> Result<AuthenticationClass, Error> {
99
AuthenticationClass::resolve(client, &self.authentication_class_ref).await
100
}
101
+
102
+ pub fn authentication_class_equals(&self, authentication_class_name: &str) -> bool {
103
+ self.authentication_class_ref == authentication_class_name
104
+ }
105
106
107
/// An enum of supported authentication providers. Each variant contains
0 commit comments