https://github.com/qvantel/faction
A simple Savon-based SOAP client for Atlassian Crowd
https://github.com/qvantel/faction
Last synced: 9 months ago
JSON representation
A simple Savon-based SOAP client for Atlassian Crowd
- Host: GitHub
- URL: https://github.com/qvantel/faction
- Owner: qvantel
- License: mit
- Created: 2013-05-15T09:45:06.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-11T07:31:22.000Z (over 10 years ago)
- Last Synced: 2025-04-03T09:38:30.458Z (9 months ago)
- Language: Ruby
- Size: 243 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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
```ruby
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](http://opensource.org/licenses/MIT).