Reading the return code from Browser for DocuSign grant code authentication in ABAP

Hi Experts,

Manual way:

Putting the urlĀ  – https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature&client_id=67a95ba6-82e7-4b78-98fd-1cff98fc95d9&redirect_uri=https://localhost.com

in google chrome and entering the DocuSign id and password. It will generate a return url as below with code:

https://localhost.com/callback?code=eyJ0eXAiOiJNVCIsImFsZyI6IlJTMjU2Iiwia2lkIjoiNjgxODVmZjEtNGU1MS00Y2U5LWFmMWMtNjg5ODEyMjAzMzE3In0.AQoAAAABAAYABwAA30yl9QLdSAgAAGvT7PUC3UgCAJxKBPiRcyhOs83_w0W0bwgVAAEAAAAYAAEAAAAFAAAADQAkAAAANjdhOTViYTYtODJlNy00YTMxLTg2ZmQtMWNmZjk4ZmM5NWQ5IgAkAAAANjdhOTViYTYtODJlNy00YTMxLTg2ZmQtMWNmZjk4ZmM5NWQ5NwDHzTMnA0QeQInEvooQf7l8MAAAT7XL4gLdSA.A_xjZwyZHt-WsC0GOG2r7lrn_4blz68uZ9G63mon7FIwDlVOko387j-3gV7x4VYpGI3uRhsuGFU2Qc2VZdRKVPH5Kf5kqhAq_5a9Ouxn-Wy1Jlg3UDxj0ZCt7Xxqr75ytBPzVoMgw5P5YCDXqJenCpcPmd9UVnN3MW9THx-lrRCqzOajV2_KHiakzZZRusD2k_wCs8qgY43RsLAAdJsxeswswLe6xOYBgFEgiN86ec-WfeUyOlZunTg1Pnmk5qrbadtyWLX5WywU3HrriYXXHwhJBQmDk7Q1aWD1Y7QzNu8ALcJM1oEe-_9Zq7l2ntUFbhPmvp75qEtriOgVVVfu1A

ABAP Development:

We are trying to achieve the same via abap program and are passing initial url but in response we are not able to read the return url. Instead we are getting html text of the url page instead of browser url (return url).

Please suggest how we can achieve this through abap to read the return url from initial url

Scroll to Top