Authorization code method

Grant type

Value

Public API key

Private API key

Authorization code

Used by web applications that can securely store the client secret. It is a 2-step process where an authorization code is granted first, then exchanged for an access token

authorization_code


The authorization code grant type consists in obtaining an access token on behalf of a Dailymotion account after being granted permission via a code.

This method involves the following steps:

  1. Build your authorization page: Share your authorization URL, where your Dailymotion account can grant permission to a user to access specific resources.
  2. Collect authorization code: Once the user is authentified, the authorization server will generate an authorization code.
  3. Request an access token: Provide the authorization code to the authorization server to generate an access token representing the permission for this user to access the Dailymotion account protected resources.