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);
|
checkAuthenticationOptions(options);
|
||||||
|
|
||||||
sessions = new Sessions(applicationContext, {
|
sessions = new Sessions(applicationContext, options);
|
||||||
lifetime: options.sessionLifetime
|
cookieAuth = new CookieAuthentication(applicationContext, options);
|
||||||
});
|
|
||||||
|
|
||||||
cookieAuth = new CookieAuthentication(applicationContext, {
|
|
||||||
lifetime: options.cookieLifetime,
|
|
||||||
name: options.cookieName
|
|
||||||
});
|
|
||||||
|
|
||||||
auth = new Authentication(applicationContext, sessions, cookieAuth);
|
auth = new Authentication(applicationContext, sessions, cookieAuth);
|
||||||
|
|
||||||
return auth;
|
return auth;
|
||||||
|
|
Loading…
Reference in New Issue