Sha256: 6b51f213061126f7421d66c50f1dea7ec68b28e7914fd16552abbf2b9adc93d4
Contents?: true
Size: 1022 Bytes
Versions: 15
Compression:
Stored size: 1022 Bytes
Contents
<!DOCTYPE html> <html lang="en"> <head> <!-- Use the highest supported document mode of Internet Explorer --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta charset="utf-8" /> <title>Inferno POST Authorization Redirect</title> </head> <body> <noscript>You need to enable JavaScript to run this app.</noscript> <form id="form" style="display:none;"> </form> </body> <script> const params = Object.fromEntries(new URLSearchParams(window.location.search).entries()); const submitUrl = params.auth_url; delete params.auth_url; const form = document.getElementById('form'); form.method = 'POST'; form.action = submitUrl; for (const property in params) { let input = document.createElement('input'); input.setAttribute('name', property); let value = params[property].replace(/\+/g, ' '); input.setAttribute('value', decodeURIComponent(value)); form.appendChild(input); } form.submit(); </script> </html>
Version data entries
15 entries across 15 versions & 1 rubygems