How to send piece of HTML from Webview to backend #2619
Unanswered
dougkirkley
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good morning,
I am primarily a backend and CLI focused developer. I currently have a tool that allows users to retrieve AWS credentials via Assume role with SAML.
To do this currently involves opening a Chromedp browser to send users to the endpoint in AWS for our Google identity provider. This requires a user to be logged in via Google, then it will send the SAML response to AWS to log in. Currently Chromedp can't be run in background because Google makes you sign again due to bot checking.
What is the best way to send a user to an external website in Webview that can send the part of the document with the SAML response in it to the backend? I know I can send events from the frontend to the backend, but since I only need to navigate to a website I'm not sure if it makes sense to just wrap an href redirect inside JS vs specifying a URL in the Webview window and executing some JS code to send the data back.
Thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions