|
|
|
oauth2: Implicit Grant Flow
|
|||
|---|---|---|---|
|
#18+
Если обратиться к первоисточнику, то там представлена такая картинка и следующий текст: https://tools.ietf.org/html/rfc6749#section-4.2 (A) The client initiates the flow by directing the resource owner's user-agent to the authorization endpoint. The client includes its client identifier, requested scope, local state, and a redirection URI to which the authorization server will send the user-agent back once access is granted (or denied). (B) The authorization server authenticates the resource owner (via the user-agent) and establishes whether the resource owner grants or denies the client's access request. (C) Assuming the resource owner grants access, the authorization server redirects the user-agent back to the client using the redirection URI provided earlier. The redirection URI includes the access token in the URI fragment. (D) The user-agent follows the redirection instructions by making a request to the web-hosted client resource (which does not include the fragment per [RFC2616]). The user-agent retains the fragment information locally. (E) The web-hosted client resource returns a web page (typically an HTML document with an embedded script) capable of accessing the full redirection URI including the fragment retained by the user-agent, and extracting the access token (and other parameters) contained in the fragment. (F) The user-agent executes the script provided by the web-hosted client resource locally, which extracts the access token. (G) The user-agent passes the access token to the client. У меня возникают следующие вопросы: 1. Что такое Web-hosted client resource? 2. На шаге (A) redirect uri передаётся на него? 3. Правильно я понимаю, что на шаге (С) мы получили acess token? или access token in the URI fragment это что-то зашифрованное? 4. Если ответ на предыдущий вопрос(первый) - да, то зачем нам все остальные действия? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.04.2018, 12:45 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=48&tid=2122113]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
58ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
38ms |
get tp. blocked users: |
2ms |
| others: | 233ms |
| total: | 374ms |

| 0 / 0 |

Извините, этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
... ля, ля, ля ...