@@ -45,12 +45,7 @@ describe('CompassAuthServiceMain', function () {
4545 const mockOidcPlugin = {
4646 mongoClientOptions : {
4747 authMechanismProperties : {
48- REQUEST_TOKEN_CALLBACK : sandbox
49- . stub ( )
50- . resolves ( { accessToken : '1234' } ) ,
51- REFRESH_TOKEN_CALLBACK : sandbox
52- . stub ( )
53- . resolves ( { accessToken : '4321' } ) ,
48+ OIDC_HUMAN_CALLBACK : sandbox . stub ( ) . resolves ( { accessToken : '1234' } ) ,
5449 } ,
5550 } ,
5651 logger : CompassAuthService [ 'oidcPluginLogger' ] ,
@@ -132,7 +127,7 @@ describe('CompassAuthServiceMain', function () {
132127 const userInfo = await CompassAuthService . signIn ( ) ;
133128 expect (
134129 mockOidcPlugin . mongoClientOptions . authMechanismProperties
135- . REQUEST_TOKEN_CALLBACK
130+ . OIDC_HUMAN_CALLBACK
136131 // two times because we need to explicitly request token first to show a
137132 // proper error message from oidc plugin in case of failed sign in
138133 ) . to . have . been . calledTwice ;
@@ -152,7 +147,7 @@ describe('CompassAuthServiceMain', function () {
152147
153148 expect (
154149 mockOidcPlugin . mongoClientOptions . authMechanismProperties
155- . REQUEST_TOKEN_CALLBACK
150+ . OIDC_HUMAN_CALLBACK
156151 // two times because we need to explicitly request token first to show a
157152 // proper error message from oidc plugin in case of failed sign in
158153 ) . to . have . been . calledTwice ;
@@ -168,14 +163,13 @@ describe('CompassAuthServiceMain', function () {
168163 CompassAuthService [ 'plugin' ] = {
169164 mongoClientOptions : {
170165 authMechanismProperties : {
171- REQUEST_TOKEN_CALLBACK : sandbox
166+ OIDC_HUMAN_CALLBACK : sandbox
172167 . stub ( )
173168 . rejects (
174169 new Error (
175170 'Failed to request token for some specific plugin reason'
176171 )
177172 ) ,
178- REFRESH_TOKEN_CALLBACK : sandbox . stub ( ) . rejects ( ) ,
179173 } ,
180174 } ,
181175 } as any ;
0 commit comments