Sha256: 4396d5834f4b7152d9464baa3f94fb585026096f2e3cbc634e13af95740d97cd

Contents?: true

Size: 1.12 KB

Versions: 37

Compression:

Stored size: 1.12 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <script>
      /*
        The data is accessible in two ways:

        1. Using the postMessage api, this window will respond to a
            'message' event with a post of all the data. (This can
            be used by browsers other than IE if this window was
            opened with window.open())
        2. This window has a function called requestCredentials which,
            when called, will return the data. (This can be
            used if this window was opened in an inAppBrowser using
            Cordova / PhoneGap)
      */

      var data = JSON.parse(decodeURIComponent('<%= URI::escape( @data.to_json ) %>'));

      window.addEventListener("message", function(ev) {
        if (ev.data === "requestCredentials") {
          ev.source.postMessage(data, '*');
          window.close();
        }
      });
      function requestCredentials() {
        return data;
      }
      setTimeout(function() {
        document.getElementById('text').innerHTML = (data && data.error) || 'Redirecting...';
      }, 1000);
    </script>
  </head>
  <body>
    <pre id="text">
    </pre>
  </body>
</html>

Version data entries

37 entries across 37 versions & 10 rubygems

Version Path
devise_jwt_auth722-0.1.7 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth7-0.1.7 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.4.1 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.4.0 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.3.0 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.2.0 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_token_auth-1.1.5 app/views/devise_token_auth/omniauth_external_window.html.erb
sidecar_token_auth-1.0.1 app/views/devise_token_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.7 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.6 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_token_auth-1.1.4 app/views/devise_token_auth/omniauth_external_window.html.erb
devise_token_auth_multitenancy-1.1.3.2 app/views/devise_token_auth/omniauth_external_window.html.erb
devise_token_auth_multitenancy-1.1.3.1 app/views/devise_token_auth/omniauth_external_window.html.erb
devise_token_auth_multitenancy-1.1.3.alpha1 app/views/devise_token_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.5 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.4 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.3 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.2 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.1 app/views/devise_jwt_auth/omniauth_external_window.html.erb
devise_jwt_auth-0.1.0 app/views/devise_jwt_auth/omniauth_external_window.html.erb