modulo-de-autenticacao
v1.0.2
Published
Modulo de Autenticação
Downloads
5
Readme
Modulo de Autenticação
Modulo responsavel por interceptar as requisições e validar a tag authorization no cabeçalho header.
Instalação
Para instalar você deve executar o seguinte comando :
npm install --save modulo-de-autenticacao
Utilização
Dentro do seu app.js você deve colocar o seguinte codigo:
var authorization = require('modulo-de-autenticacao');
var localCertificado ="data/certificado.pem";
var nomeApp = "4Teste";
app.use(authorization(localCertificado,nomeApp));
localCertificado é a variavel com o caminho de onde seu certificado publico está
nomeApp é a variavel referente ao nome do seu aplicativo ex : (invpoints,brains,measures,mapping,4Teste)
##Diagrama de Sequência Este diagrama representa a funcionalidade do modulo de autenticacao.