Layer 7 API Management

Expand all | Collapse all

IOS Mobile SDK

Jump to Best Answer
  • 1.  IOS Mobile SDK

    Posted 24 days ago
    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 24 days ago
    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,
    https://docops.ca.com/ca-api-management-oauth-toolkit/4-3/en/apis-and-assertions/oauth-server-api-endpoints

    But the MAS SDK should encapsulate those calls, you should not need to call token endpoint directly, for iOS login, you may refer to,
    http://mas.ca.com/docs/ios/1.9.00/guides/#login-user-authentication-and-authorization

    Regards,
    Mark