File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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 ) .
You can’t perform that action at this time.
0 commit comments