mirror of https://gitee.com/bigwinds/arangodb
Merge pull request #913 from triAGENS/foxx-authentication-options
Foxx Authentication accepts all options that we support
This commit is contained in:
commit
2cd0e6d77e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue