OpenID::Teams
This is an extension for ruby-openid
to add
OpenIDTeams support.
This should work for both a consumer and provider.
Installation
Add this line to your application's Gemfile:
gem 'ruby-openid-teams'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby-openid-teams
Usage
This works similar to other extensions, such as SREG and AX.
Example code for a provider:
teams_req = OpenID::Teams::Request.from_openid_request(oidreq)
return if teams_req.nil?
teams_data = ['team-a', 'team-b', 'team-c'] # Use your code to provide these strings.
teams_resp = OpenID::Teams::Response.extract_response(teams_req, teams_data)
oidresp.add_extension(teams_resp)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request