SAP Knowledge Base Article - Preview

3164080 - SAP BTP Android SDK OAuth Authentication fails with "invalid code_challenge_method"


Customer using OAuth Authentication with their corporate identity provider. This was working fine, but since 11.3.2022 when they try to register a new device, they get the error "invalid code_challenge_method" and the registration fails.  In their http request, they see the error parameter code_chalenge_method=S256. 



  • BTP Android SDK 4.0
  • OAuth
  • BTP mobile services


SAP Cloud Platform Mobile Services all versions ; SAP Mobile Services all versions


PKCE OAuth invalid code_challenge_method code_chalenge_method=S256 , KBA , MOB-SDK-ADR , Mobile SDK Android , 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.