1
0
Fork 0

Merge pull request #913 from triAGENS/foxx-authentication-options

Foxx Authentication accepts all options that we support
This commit is contained in:
Frank Celler 2014-06-20 14:27:21 +02:00
commit 2cd0e6d77e
1 changed files with 2 additions and 9 deletions

View File

@ -94,15 +94,8 @@ createAuthObject = function (applicationContext, opts) {
checkAuthenticationOptions(options);
sessions = new Sessions(applicationContext, {
lifetime: options.sessionLifetime
});
cookieAuth = new CookieAuthentication(applicationContext, {
lifetime: options.cookieLifetime,
name: options.cookieName
});
sessions = new Sessions(applicationContext, options);
cookieAuth = new CookieAuthentication(applicationContext, options);
auth = new Authentication(applicationContext, sessions, cookieAuth);
return auth;