Search code examples
ibm-mobilefirst

Adapter Security in MFP 8 with Default Scope


Am using MFP 8, created an adapter with a new procedure and in configuration, i can see the new procedure is having DEFAULT_SCOPE, when i try to get response from that adapter, am getting INVALID_REQUEST error.

If i add secured="false" for that procedure, it works fine.

I need to keep the default scope security. How to get response from client side ?


Solution

  • Please refer to this Tutorial https://mobilefirstplatform.ibmcloud.com/tutorials/it/foundation/8.0/authentication-and-security/

    Like I said you need to ObtainAccessTOken() with empty scope before calling the protected adapter calls with "DEFAULT_SCOPE"