Identities and Security
-
The various identity configurations that you can use when initializing a
Ditto
instance.- offlinePlayground: Develop peer-to-peer apps with no cloud connection. This mode offers no security and must only be used for development.
- onlineWithAuthentication: Run Ditto in secure production mode, logging on to Ditto Cloud or on on-premises authentication server. User permissions are centrally managed.
- onlinePlayground: Test a Ditto Cloud app with weak shared token authentication (“Playground mode”). This mode is not secure and must only be used for development.
- sharedKey: A mode where any device is trusted provided they know the secret key. This is a simplistic authentication model normally only suitable for private apps where users and devices are both trusted.
- manual: A manually-provided certificate identity. This accepts a base64-encoded bundle.
Declaration
Swift
public enum DittoIdentity
-
Provides access to authentication information and methods for logging on to Ditto Cloud. Relevant when using an
See moreonlineWithAuthentication
or anonline
identity.Declaration
Swift
public class DittoAuthenticator
-
Provides feedback to the developer about Ditto authentication status.
See moreDeclaration
Swift
public protocol DittoAuthenticationDelegate : AnyObject
-
Undocumented
Declaration
Swift
public typealias DittoAuthenticationRequest = DITAuthenticationRequest
-
Provides info about the authentication status.
See moreDeclaration
Swift
public struct DittoAuthenticationStatus : Equatable
-
Undocumented
Declaration
Swift
public typealias DittoAuthenticationSuccess = DITAuthenticationSuccess