Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cert_assertion

Create a client assertion for certificate authentication


Description

Create a client assertion for certificate authentication

Usage

cert_assertion(certificate, duration = 3600, signature_size = 256, ...)

Arguments

certificate

An Azure Key Vault certificate object, or the name of a PEM or PFX file containing both a private key and a public certificate.

duration

The requested validity period of the token, in seconds. The default is 1 hour.

signature_size

The size of the SHA2 signature.

...

Other named arguments which will be treated as custom claims.

Details

Use this function to customise a client assertion for authenticating with a certificate.

Value

An object of S3 class cert_assertion, which is a list representing the assertion.

See Also

Examples

## Not run: 

cert_assertion("mycert.pem", duration=2*3600)
cert_assertion("mycert.pem", custom_data="some text")

# using a cert stored in Azure Key Vault
cert <- AzureKeyVault::key_vault("myvault")$certificates$get("mycert")
cert_assertion(cert, duration=2*3600)


## End(Not run)

AzureAuth

Authentication Services for Azure Active Directory

v1.3.1
MIT + file LICENSE
Authors
Hong Ooi [aut, cre], httr development team [ctb] (Original OAuth listener code), Scott Holden [ctb] (Advice on AAD authentication), Chris Stone [ctb] (Advice on AAD authentication), Microsoft [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.