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

Version Path
smart_app_launch_test_kit-0.4.6 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.4.5 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.4.4 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.4.3 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.4.2 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.4.1 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.4.0 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.3.0 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.2.2 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.2.1 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.2.0 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.1.8 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.1.7 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.1.6 lib/smart_app_launch/post_auth.html
smart_app_launch_test_kit-0.1.5 lib/smart_app_launch/post_auth.html