Log in
Model

Generator

Magento\Integration\Model\Oauth\Nonce\Generator

What it does

This class generates and validates OAuth nonces and timestamps for secure API authentication in Magento 2.

Developers use this to prevent replay attacks by ensuring each OAuth request uses a unique nonce and valid timestamp.

The class enforces that nonces cannot be reused and timestamps must be within 10 minutes of the current time.

Public Methods

  • generateNonce()
  • generateTimestamp()
  • validateNonce()