class RHC::Rest::WWWAuth
Support three altered authentication behaviors
-
Allow a bearer token to be provided for a server
-
Allow the user and password attributes to be lazily evaluated when the credentials are needed, rather than up front.
-
If a BASIC auth request has been rejected, do not retry.
Attributes
oauth2[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/rhc/rest/httpclient.rb, line 47 def initialize super @oauth2 = OAuth2.new @authenticator.unshift(@oauth2) deferred = DeferredBasic.new @authenticator.map!{ |o| o == @basic_auth ? deferred : o } @basic_auth = deferred end