Initialize the BlackBerry AppSecure SDK in your iOS app Skip Navigation

Initialize the
BlackBerry AppSecure SDK
in your
iOS
app

  1. Import the
    BlackBerrySecurity
    module into your class.
    import BlackBerrySecurity
  2. Initialize the
    BlackBerrySecurity
    framework and invoke
    enableSecurity
    .
    SecurityControl.shared.enableSecurity()
  3. Retrieve the identity token of your authenticated user from your IDP. 
    The ID token is a JSON Web Token (JWT), which is a cryptographically-signed, Base64-encoded JSON object. To retrieve the ID token from your IDP, you must have already authenticated the user.
    If you are using
    Firebase
    , the ID token can be retrieved by following the Firebase instructions to retrieve ID tokens on clients. Other IDPs that are compliant with
    OpenID Connect
    typically provide an endpoint and client library which returns the ID token.
  4. Provide the identity token to the
    BlackBerry AppSecure SDK
    runtime.
    SecurityControl.shared.provideToken(token: idtoken)
  5. Confirm that the
    InitializationState
    of the runtime is 'active'.
Using the BlackBerry AppSecure SDK API reference, configure your application to be notified when a threat is detected.