Sha256: 103f412a35b364e2b58dd98b7bce0dc0978d0eeb3afc1fa0f6e1c06f5bb02540

Contents?: true

Size: 234 Bytes

Versions: 29

Compression:

Stored size: 234 Bytes

Contents

module AuthHelper
  def http_login(company)
    user = company.subdomain
    password = company.api_token
    request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,password)
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
scimaenaga-1.0.6 spec/support/auth_helper.rb
scimaenaga-1.0.5 spec/support/auth_helper.rb
scimaenaga-1.0.4 spec/support/auth_helper.rb
scimaenaga-1.0.3 spec/support/auth_helper.rb
scimaenaga-1.0.2 spec/support/auth_helper.rb
scimaenaga-1.0.1 spec/support/auth_helper.rb
scimaenaga-1.0.0 spec/support/auth_helper.rb
scimaenaga-0.9.3 spec/support/auth_helper.rb
scimaenaga-0.9.2 spec/support/auth_helper.rb
scimaenaga-0.9.1 spec/support/auth_helper.rb
scimaenaga-0.9.0 spec/support/auth_helper.rb
scimaenaga-0.8.0 spec/support/auth_helper.rb
scimaenaga-0.7.0 spec/support/auth_helper.rb
scimaenaga-0.6.2 spec/support/auth_helper.rb
scimaenaga-0.6.1 spec/support/auth_helper.rb
scimaenaga-0.6.0 spec/support/auth_helper.rb
scimaenaga-0.5.0 spec/support/auth_helper.rb
scimaenaga-0.4.1 spec/support/auth_helper.rb
scim_rails-0.4.0 spec/support/auth_helper.rb
scim_rails-0.3.1 spec/support/auth_helper.rb