powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Java [игнор отключен] [закрыт для гостей] / oauth2: Implicit Grant Flow
2 сообщений из 2, страница 1 из 1
oauth2: Implicit Grant Flow
    #39631500
questioner
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Если обратиться к первоисточнику, то там представлена такая картинка и следующий текст:




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. Если ответ на предыдущий вопрос(первый) - да, то зачем нам все остальные действия?
...
Рейтинг: 0 / 0
oauth2: Implicit Grant Flow
    #39631510
questioner
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Выяснил, что URI fragment это то, что поcле # в урле.
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Java [игнор отключен] [закрыт для гостей] / oauth2: Implicit Grant Flow
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]