AzureRMR (version 1.0.0)

AzureToken: Azure OAuth authentication

Description

Azure OAuth 2.0 token class, inheriting from the Token2.0 class in httr. Rather than calling the initialization method directly, tokens should be created via get_azure_token().

Usage

AzureToken

Arguments

Format

An R6 object of class AzureToken.

Methods

  • refresh: Refreshes the token. For expired Azure tokens using client credentials, refreshing really means requesting a new token.

  • validate: Checks if the token is still valid. For Azure tokens using client credentials, this just checks if the current time is less than the token's expiry time.

Caching

This class never caches its tokens, unlike httr::Token2.0.

See Also

get_azure_token, httr::Token