@@ -101,7 +101,7 @@ final class AuthenticatorTests: XCTestCase {
101
101
storeTokenExp. fulfill ( )
102
102
}
103
103
104
- let config = Authenticator . Configuration (
104
+ let config = Authenticator< Data > . Configuration(
105
105
appCredentials: Self . mockCredentials,
106
106
loginStorage: storage,
107
107
// loginStorage: nil,
@@ -148,10 +148,10 @@ final class AuthenticatorTests: XCTestCase {
148
148
XCTFail ( )
149
149
}
150
150
151
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
152
- loginStorage: storage,
153
- tokenHandling: tokenHandling,
154
- userAuthenticator: Self . disabledUserAuthenticator)
151
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
152
+ loginStorage: storage,
153
+ tokenHandling: tokenHandling,
154
+ userAuthenticator: Self . disabledUserAuthenticator)
155
155
156
156
let auth = Authenticator ( config: config, urlLoader: mockLoader)
157
157
@@ -200,10 +200,10 @@ final class AuthenticatorTests: XCTestCase {
200
200
XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
201
201
}
202
202
203
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
204
- loginStorage: storage,
205
- tokenHandling: tokenHandling,
206
- userAuthenticator: Self . disabledUserAuthenticator)
203
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
204
+ loginStorage: storage,
205
+ tokenHandling: tokenHandling,
206
+ userAuthenticator: Self . disabledUserAuthenticator)
207
207
208
208
let auth = Authenticator ( config: config, urlLoader: mockLoader)
209
209
@@ -235,10 +235,10 @@ final class AuthenticatorTests: XCTestCase {
235
235
return URL ( string: " my://login " ) !
236
236
}
237
237
238
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
239
- tokenHandling: tokenHandling,
240
- mode: . manualOnly,
241
- userAuthenticator: mockUserAuthenticator)
238
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
239
+ tokenHandling: tokenHandling,
240
+ mode: . manualOnly,
241
+ userAuthenticator: mockUserAuthenticator)
242
242
243
243
let loadExp = expectation ( description: " load url " )
244
244
let mockLoader : URLResponseProvider = { request in
@@ -301,11 +301,11 @@ final class AuthenticatorTests: XCTestCase {
301
301
}
302
302
303
303
// Configure Authenticator with result callback
304
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
305
- tokenHandling: tokenHandling,
306
- mode: . manualOnly,
307
- userAuthenticator: mockUserAuthenticator,
308
- authenticationStatusHandler: authenticationCallback)
304
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
305
+ tokenHandling: tokenHandling,
306
+ mode: . manualOnly,
307
+ userAuthenticator: mockUserAuthenticator,
308
+ authenticationStatusHandler: authenticationCallback)
309
309
310
310
let loadExp = expectation ( description: " load url " )
311
311
let mockLoader : URLResponseProvider = { request in
@@ -357,11 +357,11 @@ final class AuthenticatorTests: XCTestCase {
357
357
}
358
358
359
359
// Configure Authenticator with result callback
360
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
361
- tokenHandling: tokenHandling,
362
- mode: . manualOnly,
363
- userAuthenticator: Authenticator . failingUserAuthenticator,
364
- authenticationStatusHandler: authenticationCallback)
360
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
361
+ tokenHandling: tokenHandling,
362
+ mode: . manualOnly,
363
+ userAuthenticator: Authenticator< Data > . failingUserAuthenticator,
364
+ authenticationStatusHandler: authenticationCallback)
365
365
366
366
let auth = Authenticator ( config: config, urlLoader: nil )
367
367
do {
@@ -408,10 +408,10 @@ final class AuthenticatorTests: XCTestCase {
408
408
XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
409
409
}
410
410
411
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
412
- loginStorage: storage,
413
- tokenHandling: tokenHandling,
414
- userAuthenticator: Self . disabledUserAuthenticator)
411
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
412
+ loginStorage: storage,
413
+ tokenHandling: tokenHandling,
414
+ userAuthenticator: Self . disabledUserAuthenticator)
415
415
416
416
let auth = Authenticator ( config: config, urlLoader: mockLoader. responseProvider)
417
417
@@ -468,10 +468,10 @@ final class AuthenticatorTests: XCTestCase {
468
468
savedLogins. append ( login)
469
469
}
470
470
471
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
472
- loginStorage: storage,
473
- tokenHandling: tokenHandling,
474
- userAuthenticator: Self . disabledUserAuthenticator)
471
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
472
+ loginStorage: storage,
473
+ tokenHandling: tokenHandling,
474
+ userAuthenticator: Self . disabledUserAuthenticator)
475
475
476
476
let auth = Authenticator ( config: config, urlLoader: mockLoader)
477
477
0 commit comments