Identities and Security

  • The various identity configurations that you can use when initializing a Ditto instance.

    • development: (Deprecated - use offlinePlayground instead) Develop peer-to-peer apps with no cloud connection. This mode offers no security and must only be used for development.
    • offlinePlayground: Develop peer-to-peer apps with no cloud connection. This mode offers no security and must only be used for development.
    • online: (Deprecated - use onlineWithAuthentication instead) Run Ditto in secure production mode, logging on to Ditto Cloud or on on-premises authentication server. User permissions are centrally managed.
    • 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 without authentication (“Playground mode”). This mode offers no security 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.
    See more

    Declaration

    Swift

    public enum DittoIdentity
  • Provides access to authentication information and methods for logging on to Ditto Cloud. Relevant when using an onlineWithAuthentication or an online identity.

    See more

    Declaration

    Swift

    public class DittoAuthenticator
  • Provides feedback to the developer about Ditto authentication status.

    See more

    Declaration

    Swift

    public protocol DittoAuthenticationDelegate : AnyObject
  • Undocumented

    Declaration

    Swift

    public typealias DittoAuthenticationRequest = DITAuthenticationRequest
  • Provides info about the authentication status.

    See more

    Declaration

    Swift

    public struct DittoAuthenticationStatus : Equatable
  • Undocumented

    Declaration

    Swift

    public typealias DittoAuthenticationSuccess = DITAuthenticationSuccess