SAP Knowledge Base Article - Preview

3036327 - Error "The request is malformed" throws when get token against OAuth2.0 in AS Java

Symptom

When try to get OAuth 2.0 token against AS Java, it end with error "The request is malformed".
For example: When use Postman to get token, following error page get shown in Postman.

error_in_postman.png

If set trace location com.sap.security.oauth2 and its subtrees to All severity, after above error get simulated, in usr/sap/<SID>/<xx>/j2ee/cluster/server<x>/log/defaultTrace.*.trc following log throws out:
----------------------------
Client from <IP address> has requested the endpoint over plain HTTP
----------------------------

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


Read more...

Environment

  • SAP NetWeaver Java 7.31
  • SAP NetWeaver Java 7.4
  • SAP NetWeaver Java 7.5

Product

SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

oauth 2, , KBA , BC-JAS-SEC-UME , User Management Engine , 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.