SAP Knowledge Base Article - Preview

3052553 - API Key Only authentication fails with error: Error requesting an OAuth2SAMLBearAssertion access token while processing Anonymous Authentication.

Symptom

API Key Only/ anonymous authentication fails on both iOS and Android with error:

Failed to logon!
Authentication failed: The authentication request failed due to an invalid status code: 500. The request was sent to: <BTPms URL>
Please check the authentication URL and the used authenticator configuration. Status code: 500. Network Error: N/A

In the server log:

Error requesting an OAuth2SAMLBearAssertion access token while processing Anonymous Authentication. Maybe the SAML metadata was not imported into the sub-account as a trusted identity provider, check the configuration. Category: IO Error, message: 401 Unauthorized: [no body]

Saml Assertion failed: 401 Unauthorized: [no body]","options":{"url": ...


Read more...

Environment

  • SAP BTP SDK for iOS
  • SAP BTP SDK for Android
  • SAP BTP Mobile Services on Cloud Foundry

Product

SAP BTP SDK for Android all versions ; SAP BTP SDK for iOS all versions ; SAP Cloud Platform Mobile Services all versions ; SAP HANA Cloud Platform SDK for iOS all versions ; SAP Mobile Services all versions

Keywords

api key only, anonymous, auth, anonym, authentication, fail, trust, metadata, cf , KBA , MOB-SDK-IOS-FND , BTP SDK for iOS Foundation , MOB-SDK-ADR-FND , Cloud Platform SDK for Android Foundation Component , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.