Learn how to authenticate TMDB users within your application.
request_token
is a temporary token that is required to ask a TMDB user for permission to access their account. This token will auto expire after 60 minutes if it’s not used.
It will be used to request a user’s permission to access their TMDB account.
You will be issued a session-id
that can now be used to write user data if the permission is granted.
The create request token endpoint is used to generate a request_token
.
request_token
created in the previous step needs to be authenticated before it can be used to generate a session_id
. With a request_token
in hand, forward your user to the
following URL:
redirect_to
parameter, i.e:
redirect_to
parameter or to the /authenticate/allow
path on TMDB.
session_id
.
This is the session that can now be used to perform actions on behalf of the user such as, rate movies, create lists, etc.
request_token
using the user’s account credentials (username and password). This will replace Step 2 above.
Not all application have access to a web view so this can be used as a substitute. The validate request token (with Login) endpoint is used to do this and it requires
the TMDB user’s account username and password.
The validated request_token
will be returned in the response and can be used in Step 3 above.