wsse

Get Version

0.0.2

→ ‘wsse’

What

Simple module generates or parses X-WSSE headers for Atompub.

Document

RDoc

Installing

sudo gem install wsse

The basics

Demonstration of usage

On client …

require 'wsse'
http = Net::HTTP.start(site, 80)
response = http.get('/atom', {'X-WSSE' => WSSE::header('name', 'password')})

On Rails …

require 'wsse'
h_head = WSSE::parse(request.env['HTTP_X_WSSE'])
@o_user = User.find(:first,
                    :conditions => {'name' => h_head['name']})
unless WSSE::auth(request.env['HTTP_X_WSSE'],@o_user.password )
  render :text => 'Authentication failed' , :status => 401
end

Forum

http://rubyforge.org/forum/?group_id=5737

TODO – write README

How to submit patches

Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.

The trunk repository is svn://rubyforge.org/var/svn/wsse/ for anonymous access.

License

This code is free to use under the terms of the BSD license.

Contact

Comments are welcome. Send message to “NANAO takafumi” nanao.hhk@no_spam.gmal.com via the forum

NANAO takafumi, 12th March 2008
Theme extended from Paul Battley