pub struct ClientCertificateCredential { /* private fields */ }
Expand description
Client Credentials Using A Certificate
The OAuth 2.0 client credentials grant flow permits a web service (confidential client) to use its own credentials, instead of impersonating a user, to authenticate when calling another web service. The grant specified in RFC 6749, sometimes called two-legged OAuth, can be used to access web-hosted resources by using the identity of an application. This type is commonly used for server-to-server interactions that must run in the background, without immediate interaction with a user, and is often referred to as daemons or service accounts. For more information on the flow see Token Request With a Certificate
The SDK handles certificates and creating the assertion automatically using the openssl crate. This is significantly easier than having to format the assertion from the certificate yourself. If you need to use your own assertion see ClientAssertionCredential
Implementations§
Source§impl ClientCertificateCredential
impl ClientCertificateCredential
pub fn builder<T: AsRef<str>>( client_id: T, ) -> ClientCertificateCredentialBuilder
Trait Implementations§
Source§impl Clone for ClientCertificateCredential
impl Clone for ClientCertificateCredential
Source§fn clone(&self) -> ClientCertificateCredential
fn clone(&self) -> ClientCertificateCredential
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more