From 003666ef7c8dcb599f828fc30aec28eefad1e368 Mon Sep 17 00:00:00 2001 From: a-sansara Date: Sat, 11 Mar 2017 22:07:58 +0100 Subject: [PATCH] adding composer.json & config example --- composer.json | 13 +++++++++++++ config/pwshauth.yml.dist | 24 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 composer.json create mode 100644 config/pwshauth.yml.dist diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..865eda0 --- /dev/null +++ b/composer.json @@ -0,0 +1,13 @@ +{ + "name": "meta-tech/PwsAuth", + "license": "MIT", + "type": "library", + "autoload": { + "psr-4": { + "": "src/" + } + }, + "require": { + "symfony/yaml": "^3.2" + } +} diff --git a/config/pwshauth.yml.dist b/config/pwshauth.yml.dist new file mode 100644 index 0000000..7025b4d --- /dev/null +++ b/config/pwshauth.yml.dist @@ -0,0 +1,24 @@ +pwsauth : + + type : PwsAuth2 + + header : + auth : Pws-Authorization + ident : Pws-Ident + + salt : + common : jK5#p9Mh5.Zv} + # used for generating user specific salt + user.index : 10 + user.length : 12 + + hash : + sep : / + algo : sha256 + # effective token length size. out of bound data is simply noise + length : 52 + # session index (or obfuscate length) + session.index : 58 + # ending noise data length) + noise.length : 12 +