Skip to content

Commit 2a6d34a

Browse files
authored
Update README.md
1 parent 94df023 commit 2a6d34a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
# esia-oauth
22
Аутентификация OAuth для ЕСИА. ESIA OAuth authentiaction
3+
4+
## Установка
5+
6+
1. Загрузите код или [готовую сборку](https://github.com/intersystems-ru/esia-oauth/releases)
7+
2. Скомпилируйте классы командой: `do $system.OBJ.Compile("isc.esia.*,isc.utils.ESIAUtils")`
8+
3. Создайте SSL конфигурацию: `write $System.Status.GetErrorText(##class(isc.util.ESIAUtils).createSSLConfig())`
9+
4. Создайте веб приложение: `write $System.Status.GetErrorText(##class(isc.util.ESIAUtils).сreateWebApp())`
10+
11+
## Настройка
12+
13+
1. Отнаследуйтесь от `isc.esia.configuration.Test` и преопределите параметр `CLIENTID`.
14+
2. Отнаследуйтесь от `isc.esia.signer.OpenSSL` и преопределите методы `getKey` и `getCertificate`. Ключ должен быть без пароля.
15+
3. Выполните: `do ##class(isc.esia.Settings).install()` и выберите созданные вами классы.
16+
17+
## Использование
18+
19+
1. Для входа откройте: `http://localhost:57772/esia/login`
20+
2. Для выхода откройте: `http://localhost:57772/esia/logout`
21+
22+
## Разработка
23+
24+
Разработка в [Cache-Tort-Git UDL](https://github.com/MakarovS96/cache-tort-git).

0 commit comments

Comments
 (0)