@@ -388,6 +388,8 @@ function ensureConnectUser(instance, credentials) {
388
388
389
389
function validateAuthentication ( instance , server , serverUrl ) {
390
390
391
+ console . log ( 'connectionManager.validateAuthentication: ' + serverUrl ) ;
392
+
391
393
return ajax ( {
392
394
393
395
type : "GET" ,
@@ -691,6 +693,8 @@ function afterConnectValidated(
691
693
verifyLocalAuthentication ,
692
694
options ) {
693
695
696
+ console . log ( 'connectionManager.afterConnectValidated: ' + serverUrl ) ;
697
+
694
698
options = options || { } ;
695
699
696
700
if ( verifyLocalAuthentication && server . AccessToken ) {
@@ -740,6 +744,8 @@ function afterConnectValidated(
740
744
return Promise . resolve ( result ) ;
741
745
} ;
742
746
747
+ console . log ( 'connectionManager.afterConnectValidated result.State: ' + ( result . State || '' ) ) ;
748
+
743
749
if ( result . State === 'SignedIn' ) {
744
750
afterConnected ( instance , result . ApiClient , options ) ;
745
751
@@ -752,6 +758,8 @@ function afterConnectValidated(
752
758
753
759
function onSuccessfulConnection ( instance , server , systemInfo , connectionMode , serverUrl , options ) {
754
760
761
+ console . log ( 'connectionManager.onSuccessfulConnection: ' + serverUrl ) ;
762
+
755
763
const credentials = instance . credentialProvider ( ) . credentials ( ) ;
756
764
options = options || { } ;
757
765
if ( credentials . ConnectAccessToken && options . enableAutoLogin !== false ) {
@@ -779,12 +787,14 @@ function onSuccessfulConnection(instance, server, systemInfo, connectionMode, se
779
787
}
780
788
}
781
789
782
- function resolveIfAvailable ( instance , url , server , result , connectionMode , serverUrl , options ) {
790
+ function resolveIfAvailable ( instance , url , server , result , connectionMode , options ) {
791
+
792
+ console . log ( 'connectionManager.resolveIfAvailable: ' + url ) ;
783
793
784
794
const promise = instance . validateServerAddress ? instance . validateServerAddress ( instance , ajax , url ) : Promise . resolve ( ) ;
785
795
786
796
return promise . then ( ( ) => {
787
- return onSuccessfulConnection ( instance , server , result , connectionMode , serverUrl , options ) ;
797
+ return onSuccessfulConnection ( instance , server , result , connectionMode , url , options ) ;
788
798
} , ( ) => {
789
799
console . log ( 'minServerVersion requirement not met. Server version: ' + result . Version ) ;
790
800
return {
@@ -1166,7 +1176,7 @@ export default class ConnectionManager {
1166
1176
updateServerInfo ( server , result ) ;
1167
1177
}
1168
1178
1169
- return resolveIfAvailable ( instance , serverUrl , server , result , connectionMode , serverUrl , options ) ;
1179
+ return resolveIfAvailable ( instance , serverUrl , server , result , connectionMode , options ) ;
1170
1180
}
1171
1181
1172
1182
} , function ( ) {
0 commit comments