Skip to content

qvantel/faction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faction

Faction is a client for Atlassian Crowd's SOAP API.

Installation

Add this line to your application's Gemfile:

gem 'faction', github: 'onesto/faction'

And then execute:

$ bundle

Or install it yourself as:

$ gem install faction

Usage

User authentication

token = begin
  crowd = Faction::Client.new('http://localhost:8050/crowd/services/SecurityServer', 'myapp', 'secret')
  validation_factors = {:user_agent     => "Some web browser",
                        :remote_address => "127.0.0.1"}
  crowd.authenticate_principal('test-user', 'secret-password', validation_factors)
rescue Faction::AuthenticationException => e
  puts "Authentication failed: #{e}"
end
# .. do something with token ..

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Faction is released under the MIT License.

About

A simple Savon-based SOAP client for Atlassian Crowd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages