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

AzureToken

Azure OAuth authentication


Description

Azure OAuth 2.0 token classes, with an interface based on the Token2.0 class in httr. Rather than calling the initialization methods directly, tokens should be created via get_azure_token().

Format

An R6 object representing an Azure Active Directory token and its associated credentials. AzureToken is the base class, and the others inherit from it.

Methods

  • refresh: Refreshes the token. For expired tokens without an associated refresh token, refreshing really means requesting a new token.

  • validate: Checks if the token has not yet expired. Note that a token may be invalid for reasons other than having expired, eg if it is revoked on the server.

  • hash: Computes an MD5 hash on the input fields of the object. Used internally for identification purposes when caching.

  • cache: Stores the token on disk for use in future sessions.

See Also


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.