Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 648 Bytes

README.rdoc

File metadata and controls

22 lines (13 loc) · 648 Bytes

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