lib/github_api/authorization.rb in github_api-0.4.6 vs lib/github_api/authorization.rb in github_api-0.4.7
- old
+ new
@@ -15,11 +15,11 @@
end
# Strategy token
def auth_code
_verify_client
- @client.auth_code
+ client.auth_code
end
# Sends authorization request to GitHub.
# = Parameters
# * <tt>:redirect_uri</tt> - Required string.
@@ -31,16 +31,16 @@
# * <tt>repo</tt> - DB read/write access, and Git read access to public and private repos.
# * <tt>gist</tt> - write access to gists.
#
def authorize_url(params = {})
_verify_client
- @client.auth_code.authorize_url(params)
+ client.auth_code.authorize_url(params)
end
# Makes request to token endpoint and retrieves access token value
def get_token(authorization_code, params = {})
_verify_client
- @client.auth_code.get_token(authorization_code, params)
+ client.auth_code.get_token(authorization_code, params)
end
# Check whether authentication credentials are present
def authenticated?
basic_authed? || oauth_token?