Skip to content

Commit

Permalink
changed oauth url for token to correct one trello.com/1/authorize
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikL committed Nov 29, 2012
1 parent 7de9ee1 commit a6844fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/trello.rb
Expand Up @@ -15,7 +15,7 @@
# OAuthPolicy.consumer_credential = OAuthCredential.new 'PUBLIC_KEY', 'SECRET'
#
# You can get the key by going to this url in your browser:
# https://trello.com/1/connect?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
# https://trello.com/1/authorize?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
# Only request the permissions you need; i.e., scope=read if you only need read, or scope=write if you only need write. Comma separate scopes you need.
# If you want your token to expire after 30 days, drop the &expiration=never. Then run the following code, where KEY denotes the key returned from the
# url above:
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/integration_test.rb
Expand Up @@ -16,7 +16,7 @@ def self.included(klass)
before :all do
# Getting developer/member key
# 1. https://trello.com/1/appKey/generate
# 2. https://trello.com/1/connect?key=<public_key_here>&name=RubyTrelloIntegrationTests&response_type=token
# 2. https://trello.com/1/authorize?key=<public_key_here>&name=RubyTrelloIntegrationTests&response_type=token
# See: https://trello.com/board/trello-public-api/4ed7e27fe6abb2517a21383d

@developer_public_key = ENV["DEVELOPER_PUBLIC_KEY"]
Expand Down
2 changes: 1 addition & 1 deletion test.rb
Expand Up @@ -12,7 +12,7 @@
OAuthPolicy.consumer_credential = OAuthCredential.new 'PUBLIC_KEY', 'SECRET'
# First arg is the access token key, second is presently not used -- trello bug?
# You can get the key by going to this url in your browser:
# https://trello.com/1/connect?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
# https://trello.com/1/authorize?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
# Only request the permissions you need; i.e., scope=read if you only need read, or scope=write if you only need write. Comma separate scopes you need.
# If you want your token to expire after 30 days, drop the &expiration=never.
OAuthPolicy.token = OAuthCredential.new 'ACCESS_TOKEN_KEY', nil
Expand Down

0 comments on commit a6844fa

Please sign in to comment.