fix and update
This commit is contained in:
@@ -79,19 +79,25 @@ export const apiReference: ApiTagGroup[] = [
|
||||
method: 'GET',
|
||||
path: '/fedcm/config.json',
|
||||
summary: 'Конфигурация FedCM IdP',
|
||||
description: 'accounts_endpoint, id_assertion_endpoint, login_url, branding.'
|
||||
description: 'accounts_endpoint, id_assertion_endpoint, login_url (same-origin с config), branding.name = PROJECT_NAME, branding.icons.'
|
||||
},
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/fedcm/discover.json',
|
||||
summary: 'Discovery для виджета',
|
||||
description: 'configUrl, apiBase, frontendUrl, projectName, suggestedFields для RP.'
|
||||
},
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/fedcm/accounts',
|
||||
summary: 'Список аккаунтов FedCM',
|
||||
description: 'Credentialed GET по cookie lendry_fedcm_sess. CORS с credentials для RP.'
|
||||
description: 'Credentialed GET по cookie lendry_fedcm_sess. Поля: name, email, picture, tel. CORS с credentials для RP.'
|
||||
},
|
||||
{
|
||||
method: 'POST',
|
||||
path: '/fedcm/id_assertion',
|
||||
summary: 'Выдача id_token FedCM',
|
||||
description: 'Тело: client_id, account_id. Возвращает { token } — OIDC id_token.'
|
||||
description: 'Form POST: client_id, account_id, fields, disclosure_shown_for. Возвращает { token } — OIDC id_token.'
|
||||
},
|
||||
{
|
||||
method: 'GET',
|
||||
@@ -105,6 +111,12 @@ export const apiReference: ApiTagGroup[] = [
|
||||
summary: 'Синхронизация FedCM cookie',
|
||||
description: 'Bearer access token → установка HttpOnly cookie lendry_fedcm_sess.',
|
||||
auth: true
|
||||
},
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/fedcm/login-status',
|
||||
summary: 'FedCM Login Status bridge',
|
||||
description: 'HTML на API origin для navigator.login.setStatus (origin login_url).'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user