@@ -56,7 +56,7 @@ const openAuthOIDC = async () => {
56
56
const openOptionsAccordion = ( ) =>
57
57
fireEvent . click ( screen . getByText ( 'OIDC Options' ) ) ;
58
58
59
- describe ( 'AuthenticationOIDC Connection Form' , function ( ) {
59
+ describe ( 'Authentication OIDC Connection Form' , function ( ) {
60
60
let expectToConnectWith ;
61
61
let connectSpy : sinon . SinonSpy ;
62
62
@@ -100,7 +100,7 @@ describe('AuthenticationOIDC Connection Form', function () {
100
100
101
101
await expectToConnectWith ( {
102
102
connectionString :
103
- 'mongodb://goodSandwich@localhost:27017/?authMechanism=MONGODB-OIDC' ,
103
+ 'mongodb://goodSandwich@localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
104
104
} ) ;
105
105
} ) ;
106
106
@@ -111,7 +111,7 @@ describe('AuthenticationOIDC Connection Form', function () {
111
111
112
112
await expectToConnectWith ( {
113
113
connectionString :
114
- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
114
+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
115
115
oidc : {
116
116
redirectURI : 'goodSandwiches' ,
117
117
} ,
@@ -122,7 +122,7 @@ describe('AuthenticationOIDC Connection Form', function () {
122
122
fireEvent . click ( screen . getByText ( 'Consider Target Endpoint Trusted' ) ) ;
123
123
await expectToConnectWith ( {
124
124
connectionString :
125
- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
125
+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
126
126
oidc : {
127
127
enableUntrustedEndpoints : true ,
128
128
} ,
@@ -134,7 +134,7 @@ describe('AuthenticationOIDC Connection Form', function () {
134
134
fireEvent . click ( screen . getByText ( 'Consider Target Endpoint Trusted' ) ) ;
135
135
await expectToConnectWith ( {
136
136
connectionString :
137
- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
137
+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
138
138
oidc : { } ,
139
139
} ) ;
140
140
} ) ;
@@ -153,7 +153,7 @@ describe('AuthenticationOIDC Connection Form', function () {
153
153
fireEvent . click ( screen . getByText ( deviceAuthFlowText ) ) ;
154
154
await expectToConnectWith ( {
155
155
connectionString :
156
- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
156
+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
157
157
oidc : {
158
158
allowedFlows : [ 'auth-code' , 'device-auth' ] ,
159
159
} ,
@@ -165,7 +165,7 @@ describe('AuthenticationOIDC Connection Form', function () {
165
165
fireEvent . click ( screen . getByText ( deviceAuthFlowText ) ) ;
166
166
await expectToConnectWith ( {
167
167
connectionString :
168
- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
168
+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
169
169
oidc : {
170
170
allowedFlows : [ 'auth-code' ] ,
171
171
} ,
0 commit comments