You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Default to not setting kSecUseDataProtectionKeychain to true as this can cause issues with querying the Keychain in Swift Playgrounds or other apps that cannot setup the Keychain on macOS. This behavior can be changed by setting usingDataProtectionKeychain to true when initializing the SDK ([#398](https://github.com/parse-community/Parse-Swift/pull/398)), thanks to [Corey Baker](https://github.com/cbaker6).
@@ -191,6 +193,8 @@ public func initialize(configuration: ParseConfiguration) {
191
193
for more info.
192
194
- parameter cacheMemoryCapacity: The memory capacity of the cache, in bytes. Defaults to 512KB.
193
195
- parameter cacheDiskCapacity: The disk capacity of the cache, in bytes. Defaults to 10MB.
196
+
- parameter usingDataProtectionKeychain: Sets `kSecUseDataProtectionKeychain` to **true**. See Apple's [documentation](https://developer.apple.com/documentation/security/ksecusedataprotectionkeychain)
197
+
for more info. Defaults to **false**.
194
198
- parameter deletingKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time.
195
199
Defaults to **false**.
196
200
- parameter httpAdditionalHeaders: A dictionary of additional headers to send with requests. See Apple's
@@ -201,9 +205,11 @@ public func initialize(configuration: ParseConfiguration) {
201
205
It should have the following argument signature: `(challenge: URLAuthenticationChallenge,
- parameter cacheDiskCapacity: The disk capacity of the cache, in bytes. Defaults to 10MB.
273
281
- parameter migratingFromObjcSDK: If your app previously used the iOS Objective-C SDK, setting this value
274
282
to **true** will attempt to migrate relevant data stored in the Keychain to ParseSwift. Defaults to **false**.
283
+
- parameter usingDataProtectionKeychain: Sets `kSecUseDataProtectionKeychain` to **true**. See Apple's [documentation](https://developer.apple.com/documentation/security/ksecusedataprotectionkeychain)
284
+
for more info. Defaults to **false**.
275
285
- parameter deletingKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time.
276
286
Defaults to **false**.
277
287
- parameter httpAdditionalHeaders: A dictionary of additional headers to send with requests. See Apple's
@@ -282,9 +292,11 @@ public func initialize(
282
292
It should have the following argument signature: `(challenge: URLAuthenticationChallenge,
/// Sets `kSecUseDataProtectionKeychain` to **true**. See Apple's [documentation](https://developer.apple.com/documentation/security/ksecusedataprotectionkeychain)
81
+
/// for more info.
82
+
/// Defaults to **false**.
83
+
/// - warning: This is known to cause issues in Playgrounds or in situtations when
84
+
/// apps do not have credentials to setup a Keychain.
/// Maximum number of times to try to connect to Parse Server.
81
88
/// Defaults to 5.
82
89
publicinternal(set)varmaxConnectionAttempts:Int=5
@@ -115,6 +122,8 @@ public struct ParseConfiguration {
115
122
- parameter cacheDiskCapacity: The disk capacity of the cache, in bytes. Defaults to 10MB.
116
123
- parameter migratingFromObjcSDK: If your app previously used the iOS Objective-C SDK, setting this value
117
124
to **true** will attempt to migrate relevant data stored in the Keychain to ParseSwift. Defaults to **false**.
125
+
- parameter usingDataProtectionKeychain: Sets `kSecUseDataProtectionKeychain` to **true**. See Apple's [documentation](https://developer.apple.com/documentation/security/ksecusedataprotectionkeychain)
126
+
for more info. Defaults to **false**.
118
127
- parameter deletingKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time.
119
128
Defaults to **false**.
120
129
- parameter httpAdditionalHeaders: A dictionary of additional headers to send with requests. See Apple's
@@ -127,9 +136,11 @@ public struct ParseConfiguration {
127
136
It should have the following argument signature: `(challenge: URLAuthenticationChallenge,
@@ -198,6 +211,8 @@ public struct ParseConfiguration {
198
211
- parameter cacheDiskCapacity: The disk capacity of the cache, in bytes. Defaults to 10MB.
199
212
- parameter migratingFromObjcSDK: If your app previously used the iOS Objective-C SDK, setting this value
200
213
to **true** will attempt to migrate relevant data stored in the Keychain to ParseSwift. Defaults to **false**.
214
+
- parameter usingDataProtectionKeychain: Sets `kSecUseDataProtectionKeychain` to **true**. See Apple's [documentation](https://developer.apple.com/documentation/security/ksecusedataprotectionkeychain)
215
+
for more info. Defaults to **false**.
201
216
- parameter deletingKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time.
202
217
Defaults to **false**.
203
218
- parameter httpAdditionalHeaders: A dictionary of additional headers to send with requests. See Apple's
@@ -210,9 +225,11 @@ public struct ParseConfiguration {
210
225
It should have the following argument signature: `(challenge: URLAuthenticationChallenge,
0 commit comments