Sha256: 12720575e904115c25d823ab2d486c09d148cd35bff3292a07833648f5bb18b6

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

class GithubToken < OauthToken
  
  key do |access_token|
    user = JSON.parse(access_token.get("/api/v2/json/user/show"))
    user["id"]
  end
  
  settings "https://github.com",
    :authorize_path     => "/login/oauth/authorize",
    :access_token_path  => "/login/oauth/access_token"
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authlogic-connect-0.0.5 lib/authlogic_connect/oauth/tokens/github_token.rb