Authentication

Authentication

Authentication: provide user/password and get a bearer token in return

  • username: Open Food Facts user_id (not email)
  • password: user password (clear text, but HTTPS encrypted)

token is returned, to be used in later requests with usual "Authorization: bearer token" headers

post/auth

Request

  • Base URL
    https://api.folksonomy.openfoodfacts.org
  • URL
    https://api.folksonomy.openfoodfacts.org/auth
  • Auth
    none declared

Request body application/x-www-form-urlencoded

grant_typestring nullable
usernamestring required
passwordstring required
scopestring
client_idstring nullable
client_secretstring nullable

Response

Successful Response

access_tokenstring required
token_typestring required

Changes

No recorded changes to this operation across all 1 revision of this API.