Skip to content

A simple ruby gem for handling OAuth 2 authentication

License

Notifications You must be signed in to change notification settings

pacive/ruby-simpleoauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SimpleOAuth

A simple ruby gem for handling OAuth 2 authentication

SimpleOAuth is a gem that handles OAuth2 authentication that is used by many web APIs to provide access to resources and/or interact with remote services.

Example:

require 'simpleoauth'

oauth = SimpleOAuth::Client.new('api.example.com', '/oauth/token', 'oauth_client_id', 'oauth_client_secret')
oauth.load_token('/path/to/file/')
puts oauth.get('/resource').body
puts oauth.post('/resource', { data: 'some_data' }.to_json, 'content-type' => 'application/json')

About

A simple ruby gem for handling OAuth 2 authentication

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages