Skip to content
Http Basic authentication strategy for OmniAuth
Ruby
Pull request Compare This branch is 2 commits ahead, 1 commit behind janx:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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
Something went wrong with that request. Please try again.