SAP Knowledge Base Article - Preview

3797633 - local approuter run generates http redirect_uri rejected by xsuaa; restart dev space to fix, business application studio

Symptom

  • Local approuter authentication fails during OAuth2 authorize; XSUAA rejects redirect_uri.
  • The redirect_uri is constructed with the http scheme instead of https (only localhost is exempt from the https requirement).
  • App router log shows x-forwarded-path header is undefined; the resulting http://…/login/callback does not match the registered https pattern.
  • Issue occurs when running locally in business application studio; application code and approuter version remain unchanged.


Read more...

Environment

  • Product: Product Independent Assignment (Fallback)
  • Run HTML5 Module (DOES NOT INCLUDE SAP FIORI APPS)
  • Business Application Studio dev space, local approuter run
  • @sap/approuter 22.0.3

Keywords

approuter, xsuaa, redirect_uri, http, https, oauth2, local run, business application studio, dev space, x-forwarded-proto, x-forwarded-path, proxy headers, login callback, authorization failure, workspace proxy , KBA , CA-BAS-RUN-HTML5 , Run HTML5 Module (DOES NOT INCLUDE SAP FIORI APPS) , 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.