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 +