@@ -96,10 +96,10 @@ final class AuthenticatorTests: XCTestCase {
96
96
storeTokenExp. fulfill ( )
97
97
}
98
98
99
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
100
- loginStorage: storage,
101
- tokenHandling: tokenHandling,
102
- userAuthenticator: mockUserAuthenticator)
99
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
100
+ loginStorage: storage,
101
+ tokenHandling: tokenHandling,
102
+ userAuthenticator: mockUserAuthenticator)
103
103
104
104
let auth = Authenticator ( config: config, urlLoader: mockLoader)
105
105
@@ -132,10 +132,10 @@ final class AuthenticatorTests: XCTestCase {
132
132
XCTFail ( )
133
133
}
134
134
135
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
136
- loginStorage: storage,
137
- tokenHandling: tokenHandling,
138
- userAuthenticator: Self . disabledUserAuthenticator)
135
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
136
+ loginStorage: storage,
137
+ tokenHandling: tokenHandling,
138
+ userAuthenticator: Self . disabledUserAuthenticator)
139
139
140
140
let auth = Authenticator ( config: config, urlLoader: mockLoader)
141
141
@@ -184,10 +184,10 @@ final class AuthenticatorTests: XCTestCase {
184
184
XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
185
185
}
186
186
187
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
188
- loginStorage: storage,
189
- tokenHandling: tokenHandling,
190
- userAuthenticator: Self . disabledUserAuthenticator)
187
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
188
+ loginStorage: storage,
189
+ tokenHandling: tokenHandling,
190
+ userAuthenticator: Self . disabledUserAuthenticator)
191
191
192
192
let auth = Authenticator ( config: config, urlLoader: mockLoader)
193
193
@@ -219,10 +219,10 @@ final class AuthenticatorTests: XCTestCase {
219
219
return URL ( string: " my://login " ) !
220
220
}
221
221
222
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
223
- tokenHandling: tokenHandling,
224
- mode: . manualOnly,
225
- userAuthenticator: mockUserAuthenticator)
222
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
223
+ tokenHandling: tokenHandling,
224
+ mode: . manualOnly,
225
+ userAuthenticator: mockUserAuthenticator)
226
226
227
227
let loadExp = expectation ( description: " load url " )
228
228
let mockLoader : URLResponseProvider = { request in
@@ -286,11 +286,11 @@ final class AuthenticatorTests: XCTestCase {
286
286
}
287
287
288
288
// Configure Authenticator with result callback
289
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
290
- tokenHandling: tokenHandling,
291
- mode: . manualOnly,
292
- userAuthenticator: mockUserAuthenticator,
293
- authenticationStatusHandler: authenticationCallback)
289
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
290
+ tokenHandling: tokenHandling,
291
+ mode: . manualOnly,
292
+ userAuthenticator: mockUserAuthenticator,
293
+ authenticationStatusHandler: authenticationCallback)
294
294
295
295
let loadExp = expectation ( description: " load url " )
296
296
let mockLoader : URLResponseProvider = { request in
@@ -343,11 +343,11 @@ final class AuthenticatorTests: XCTestCase {
343
343
}
344
344
345
345
// Configure Authenticator with result callback
346
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
347
- tokenHandling: tokenHandling,
348
- mode: . manualOnly,
349
- userAuthenticator: Authenticator . failingUserAuthenticator,
350
- authenticationStatusHandler: authenticationCallback)
346
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
347
+ tokenHandling: tokenHandling,
348
+ mode: . manualOnly,
349
+ userAuthenticator: Authenticator< Data > . failingUserAuthenticator,
350
+ authenticationStatusHandler: authenticationCallback)
351
351
352
352
let auth = Authenticator ( config: config, urlLoader: nil )
353
353
do {
@@ -395,10 +395,10 @@ final class AuthenticatorTests: XCTestCase {
395
395
XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
396
396
}
397
397
398
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
399
- loginStorage: storage,
400
- tokenHandling: tokenHandling,
401
- userAuthenticator: Self . disabledUserAuthenticator)
398
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
399
+ loginStorage: storage,
400
+ tokenHandling: tokenHandling,
401
+ userAuthenticator: Self . disabledUserAuthenticator)
402
402
403
403
let auth = Authenticator ( config: config, urlLoader: mockLoader. responseProvider)
404
404
@@ -453,10 +453,10 @@ final class AuthenticatorTests: XCTestCase {
453
453
savedLogins. append ( login)
454
454
}
455
455
456
- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
457
- loginStorage: storage,
458
- tokenHandling: tokenHandling,
459
- userAuthenticator: Self . disabledUserAuthenticator)
456
+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
457
+ loginStorage: storage,
458
+ tokenHandling: tokenHandling,
459
+ userAuthenticator: Self . disabledUserAuthenticator)
460
460
461
461
let auth = Authenticator ( config: config, urlLoader: mockLoader)
462
462
0 commit comments