Module: SqAuth::SqAuthUtils

Defined in:
lib/sq_auth/sq_auth_utils.rb

Class Method Summary collapse

Class Method Details

.default_draw_template(uri, project_params, user_params) ⇒ Object

callback, role, project, session, ip



3
4
5
6
7
8
9
10
# File 'lib/sq_auth/sq_auth_utils.rb', line 3

def self.default_draw_template uri, project_params, user_params #callback, role, project, session, ip
  <<-EOF
    <div class="sq_auth_not_logged_in">
      <iframe src='#{uri}?_=#{Time.now.to_i}&#{SqAuth::SqAuthRequest.hash_to_query(project_params.merge(user_params))}'>
      </iframe>
    </div>
  EOF
end