Layer 7 API Management

Expand all | Collapse all

IOS Mobile SDK

Jump to Best Answer
  • 1.  IOS Mobile SDK

    Posted 08-22-2019 02:38 AM
    We are using Mobile SDK for the very first time to develop mobile apps, so pardon for basic questions.

    We have successfully developed Android app using Android Mobile SDK. The authentication happen in /device/register.

    However for IOS SDK, we are facing problems with authentication. Is process flow of IOS SDK not the same as Android SDK?
    In IOS app, the mobile device gets registered but fails in OAuth.

    In Android, Authentication happen in "/device/register" where as in IOS again authenticating in "/v2/token"

    In "/v2/token",

    Android grant type is "urn:ietf:params:oauth:grant-type:jwt-bearer"

    IOS grant type is "password" and failing in "OTK Require OAuth 2.0".

    Can someone tell us what we do wrong in the authentication process with IOS SDK?

  • 2.  RE: IOS Mobile SDK
    Best Answer

    Posted 08-22-2019 08:47 PM
    Dear Anand,
    The jwt-bearer and password are different grant types, for different oauth flow, and has different requirement when calling token endpoint.
    For the details of token endpoint, you may refer to,

    But the MAS SDK should encapsulate those calls, you should not need to call token endpoint directly, for iOS login, you may refer to,