Bound SSOAdapter methods to their instance
no-issue This allows custom SSO adapters to store instance config and refer to in their methods
This commit is contained in:
parent
aface9ed4c
commit
0ce8e3171b
@ -43,7 +43,7 @@ const ssoAdapter = adapterManager.getAdapter('sso');
|
||||
module.exports.createSessionFromToken = sessionFromToken({
|
||||
callNextWithError: false,
|
||||
createSession: sessionService.createSessionForUser,
|
||||
findUserByLookup: ssoAdapter.getUserForIdentity,
|
||||
getLookupFromToken: ssoAdapter.getIdentityFromCredentials,
|
||||
getTokenFromRequest: ssoAdapter.getRequestCredentials
|
||||
findUserByLookup: ssoAdapter.getUserForIdentity.bind(ssoAdapter),
|
||||
getLookupFromToken: ssoAdapter.getIdentityFromCredentials.bind(ssoAdapter),
|
||||
getTokenFromRequest: ssoAdapter.getRequestCredentials.bind(ssoAdapter)
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user