feat(module,auth): authentication module with arbitrary claims support
This commit is contained in:
20
misc/client-sdk-testsuite/src/public/test/auth-module.js
Normal file
20
misc/client-sdk-testsuite/src/public/test/auth-module.js
Normal file
@ -0,0 +1,20 @@
|
||||
describe('Auth Module', function() {
|
||||
|
||||
before(() => {
|
||||
return Edge.connect();
|
||||
});
|
||||
|
||||
after(() => {
|
||||
Edge.disconnect();
|
||||
});
|
||||
|
||||
it('should retrieve user informations', function() {
|
||||
return Edge.rpc("getUserInfo")
|
||||
.then(userInfo => {
|
||||
chai.assert.isNotNull(userInfo.subject);
|
||||
chai.assert.isNotNull(userInfo.role);
|
||||
chai.assert.isNotNull(userInfo.preferredUsername);
|
||||
})
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user