Сообщения

Сообщения за январь, 2019

Kerberos и IIS OOS авторизация

nodejs: SSO-авторизация через Kerberos: https://habr.com/ru/post/321962/Описание настроек OOS: http://winitpro.ru/index.php/2016/05/18/nastrojka-kerberos-avtorizacii-na-sajte-iis/ passport-kerberos: http://www.passportjs.org/packages/passport-kerberos/ Модуль node-sspi: https://www.npmjs.com/package/node-sspi Модуль kerberos: https://www.npmjs.com/package/kerberos#KerberosClient Как встроить Windows Authentication в Angular: https://spikesapps.wordpress.com/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/

Запуск дочернего процесса из Node.JS

Дока по node.js на русском: https://js-node.ru. Раздел по дочерним процессам: https://js-node.ru/site/article?id=13 Документ на сайте webformyself: https://webformyself.com/node-js-masshtabirovanie-prilozheniya-s-pomoshhyu-child_process/ var childProcess = require ( 'child_process' ); function runScript ( scriptPath , callback ) { // keep track of whether callback has been invoked to prevent multiple invocations var invoked = false ; var process = childProcess . fork ( scriptPath ); // listen for errors as they may prevent the exit event from firing process . on ( 'error' , function ( err ) { if ( invoked ) return ; invoked = true ; callback ( err ); }); // execute the callback once the process has finished running process . on ( 'exit' , function ( code ) { if ( invoked ) return ; invoked = true ; var err = code === 0 ? null : n...