Skip to content

Commit 2f1e152

Browse files
committed
fix: access token connection failure with wrong type #885
1 parent 2c7ae55 commit 2f1e152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class Connection extends EventEmitter {
125125
}
126126

127127
authentication = {
128-
type: 'azure-active-directory-password',
128+
type: 'azure-active-directory-access-token',
129129
options: {
130130
token: options.token
131131
}
@@ -1892,7 +1892,7 @@ Connection.prototype.STATE = {
18921892
},
18931893
featureExtAck: function(token) {
18941894
const { authentication } = this.config;
1895-
if (authentication.type === 'azure-active-directory-password') {
1895+
if (authentication.type === 'azure-active-directory-password' || authentication.type === 'azure-active-directory-access-token') {
18961896
if (token.fedAuth === undefined) {
18971897
this.loginError = ConnectionError('Did not receive Active Directory authentication acknowledgement');
18981898
this.loggedIn = false;

0 commit comments

Comments
 (0)