https://github.com/astro/ruby-sasl
Simple Authentication and Security Layer (RFC 4422) for Ruby
https://github.com/astro/ruby-sasl
Last synced: about 1 year ago
JSON representation
Simple Authentication and Security Layer (RFC 4422) for Ruby
- Host: GitHub
- URL: https://github.com/astro/ruby-sasl
- Owner: astro
- License: mit
- Created: 2009-02-06T17:10:00.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2011-01-27T19:02:25.000Z (over 15 years ago)
- Last Synced: 2025-05-10T04:39:24.014Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 161 KB
- Stars: 12
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
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)