Http Basic authentication strategy for OmniAuth
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
Guardfile
LICENSE
README.rdoc
Rakefile
omniauth-http-basic.gemspec

README.rdoc

OmniAuth::HttpBasic

OmniAuth stratgies for APIs that have HTTP Basic authentication.

This strategy is intended for developer's convinience, it will NOT set any uid or auth_hash data like a user strategy. So in most cases you need to create your own strategy by subclassing this strategy, and set uid and auth_hash there.

Use it by subclass

Check github.com/janx/omniauth-broadworks for example.

Install manually or using Bundler:

gem 'omniauth-http-basic'

Add :httpbasic provider to omniauth builder:

use OmniAuth::Builder do
  provider :httpbasic, "https://example.com/user_info"
  # provider ...
end