@@ -56,7 +56,7 @@ const openAuthOIDC = async () => {
5656const openOptionsAccordion = ( ) =>
5757 fireEvent . click ( screen . getByText ( 'OIDC Options' ) ) ;
5858
59- describe ( 'AuthenticationOIDC Connection Form' , function ( ) {
59+ describe ( 'Authentication OIDC Connection Form' , function ( ) {
6060 let expectToConnectWith ;
6161 let connectSpy : sinon . SinonSpy ;
6262
@@ -100,7 +100,7 @@ describe('AuthenticationOIDC Connection Form', function () {
100100
101101 await expectToConnectWith ( {
102102 connectionString :
103- 'mongodb://goodSandwich@localhost:27017/?authMechanism=MONGODB-OIDC' ,
103+ 'mongodb://goodSandwich@localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
104104 } ) ;
105105 } ) ;
106106
@@ -111,7 +111,7 @@ describe('AuthenticationOIDC Connection Form', function () {
111111
112112 await expectToConnectWith ( {
113113 connectionString :
114- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
114+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
115115 oidc : {
116116 redirectURI : 'goodSandwiches' ,
117117 } ,
@@ -122,7 +122,7 @@ describe('AuthenticationOIDC Connection Form', function () {
122122 fireEvent . click ( screen . getByText ( 'Consider Target Endpoint Trusted' ) ) ;
123123 await expectToConnectWith ( {
124124 connectionString :
125- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
125+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
126126 oidc : {
127127 enableUntrustedEndpoints : true ,
128128 } ,
@@ -134,7 +134,7 @@ describe('AuthenticationOIDC Connection Form', function () {
134134 fireEvent . click ( screen . getByText ( 'Consider Target Endpoint Trusted' ) ) ;
135135 await expectToConnectWith ( {
136136 connectionString :
137- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
137+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
138138 oidc : { } ,
139139 } ) ;
140140 } ) ;
@@ -153,7 +153,7 @@ describe('AuthenticationOIDC Connection Form', function () {
153153 fireEvent . click ( screen . getByText ( deviceAuthFlowText ) ) ;
154154 await expectToConnectWith ( {
155155 connectionString :
156- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
156+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
157157 oidc : {
158158 allowedFlows : [ 'auth-code' , 'device-auth' ] ,
159159 } ,
@@ -165,7 +165,7 @@ describe('AuthenticationOIDC Connection Form', function () {
165165 fireEvent . click ( screen . getByText ( deviceAuthFlowText ) ) ;
166166 await expectToConnectWith ( {
167167 connectionString :
168- 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC' ,
168+ 'mongodb://localhost:27017/?authMechanism=MONGODB-OIDC&authSource=%24external ' ,
169169 oidc : {
170170 allowedFlows : [ 'auth-code' ] ,
171171 } ,
0 commit comments