Module: HealthGraph::Authentication
- Included in:
- HealthGraph
- Defined in:
- lib/health_graph/authentication.rb
Instance Method Summary collapse
Instance Method Details
#access_token(code) ⇒ Object
7 8 9 |
# File 'lib/health_graph/authentication.rb', line 7 def access_token(code) client.auth_code.get_token(code, :redirect_uri => ).token end |
#authorize_url ⇒ Object
3 4 5 |
# File 'lib/health_graph/authentication.rb', line 3 def client.auth_code. :redirect_uri => end |
#client ⇒ Object
11 12 13 |
# File 'lib/health_graph/authentication.rb', line 11 def client OAuth2::Client.new client_id, client_secret, {:authorize_url => , :token_url => access_token_url} end |