Socket
Book a DemoInstallSign in
Socket

soar_authentication

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soar_authentication

0.1.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

SoarAuthentication

This middleware will refuse unauthenticated requests. Refusal means a 401 response code with a message indicating authentication failure. Requests are unauthenticaed if request.session['user'] is not set. Your authentication strategy can authenticate the request by setting request.session['user']. If ENV['RACK_ENV'] == 'development', authentication will always be approved. The SoarAuthentication::Authentication class can interpret a request, tell if its authenticated and which identifier was used. If ENV['RACK_ENV'] == 'development' asking for the identifier will yield 'developer'

Installation

Add this line to your application's Gemfile:

gem 'soar_authentication'

And then execute:

$ bundle

Or install it yourself as:

$ gem install soar_authentication

Usage

use SoarAuthentication::Authenticate

To use the helper Authentication class:

  iut = SoarAuthentication::Authentication.new(request)
  iut.authenticated?
  puts iut.identifier

Contributing

Please send feedback and comments to the author at:

Ernst van Graan ernst.van.graan@hetzner.co.za

This gem is sponsored by Hetzner (Pty) Ltd - http://hetzner.co.za

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 19 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.