Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/authorization_for_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Location: {redirect_uri}?code={authorization_code}

* `grant_type=authorization_code`
* `client_id` и `client_secret` - необходимо заполнить значениями, выданными при [регистрации приложения](https://dev.hh.ru/admin)
* `redirect_uri` - если параметр был уточнен на шаге [получения авторизации](#get-auth), необходимо передать уточненный `redirect_uri` или вернется ошибка, если уточнения не было, параметр можно не посылать.
* `code` – значение `authorization_code`, полученное при
[перенаправлении пользователя](#get-authorization_code)

Expand Down
6 changes: 6 additions & 0 deletions docs_eng/authorization_for_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ The request body should contain the following information:
* `client_secret={client_secret}`
* `code={authorization_code}`

If, when obtaining the `authorization_code`, `redirect_uri` was indicated, then
this value must be sent in the request (strings are compared); otherwise this
parameter is optional. If `redirect_uri` is not indicated when requesting
`/oauth/authorize`, then, when indicating it in the second request
(`/oauth/token`), the server will return an error.

Request body must be sent in standard `application/x-www-form-urlencoded`
with the indication of a corresponding title `Content-Type`.

Expand Down