Sha256: ab68c3a11e36ec5948457d706ad971c9395e36d48cff266c21dbe99fe6c58319

Contents?: true

Size: 311 Bytes

Versions: 11

Compression:

Stored size: 311 Bytes

Contents

class GithubToken < OauthToken
  
  version 2
  
  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

11 entries across 11 versions & 5 rubygems

Version Path
robdimarco-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/github_token.rb
anideo-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/github_token.rb
jspooner-authlogic-connect-0.0.20 lib/authlogic_connect/oauth/tokens/github_token.rb
jspooner-authlogic-connect-0.0.19 lib/authlogic_connect/oauth/tokens/github_token.rb
foreverman-authlogic-connect-0.0.4 lib/authlogic_connect/oauth/tokens/github_token.rb
foreverman-authlogic-connect-0.0.3 lib/authlogic_connect/oauth/tokens/github_token.rb
foreverman-authlogic-connect-0.0.2 lib/authlogic_connect/oauth/tokens/github_token.rb
foreverman-authlogic-connect-0.0.1 lib/authlogic_connect/oauth/tokens/github_token.rb
foreverman-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/github_token.rb
authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/github_token.rb
authlogic-connect-0.0.5.1 lib/authlogic_connect/oauth/tokens/github_token.rb