Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple Authentication and Security Layer (RFC 4422) for Ruby

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 ruby-sasl.gemspec
README.markdown

Simple Authentication and Security Layer (RFC 4422) for Ruby

Goal

Have a reusable library for client implementations that need to do authentication over SASL, mainly targeted at Jabber/XMPP libraries.

All class carry just state, are thread-agnostic and must also work in asynchronous environments.

Usage

Derive from SASL::Preferences and overwrite the methods. Then, create a mechanism instance: # mechanisms => ['DIGEST-MD5', 'PLAIN'] sasl = SASL.new(mechanisms, my_preferences) content_to_send = sasl.start # [...] content_to_send = sasl.challenge(received_content)

Something went wrong with that request. Please try again.