修订版 | caa6c889cfe11d088fe0559a5793ec5bb3fe53aa (tree) |
---|---|
时间 | 2016-03-12 06:10:19 |
作者 | Tatsuki Sugiura <sugi@nemu...> |
Commiter | Tatsuki Sugiura |
Change to production env.
@@ -11,8 +11,8 @@ require 'json' | ||
11 | 11 | |
12 | 12 | module OSDN |
13 | 13 | module CLI |
14 | - @@client_id = "fd573bffcd132857b32a438d3f4b6f575580f286afc94a45e220db244919163e" | |
15 | - @@client_secret = "92b4792000e091668ccf2ac95981c35fd3ef347450a4fde1a9a3344e99100fa1" | |
14 | + @@client_id = "osdn-cli" | |
15 | + @@client_secret = "not-secret" | |
16 | 16 | def client_id |
17 | 17 | @@client_id |
18 | 18 | end |
@@ -4,7 +4,7 @@ module OSDN; module CLI; module Command | ||
4 | 4 | logger.debug "Trying login" |
5 | 5 | scope = %w(profile group group_write) |
6 | 6 | |
7 | - auth_url = "https://sf-test-sugi.office.osdn.jp/account/oauth2ui/authorize?client_id=#{CLI.client_id}&state=cli#{Time.now.to_i}&response_type=code&scope=#{scope.join('%20')}" | |
7 | + auth_url = "https://osdn.jp/account/oauth2ui/authorize?client_id=#{CLI.client_id}&state=cli#{Time.now.to_i}&response_type=code&scope=#{scope.join('%20')}" | |
8 | 8 | |
9 | 9 | launch_brwoser auth_url |
10 | 10 | puts |
@@ -65,12 +65,6 @@ module OSDN | ||
65 | 65 | exit 1 |
66 | 66 | end |
67 | 67 | |
68 | - OSDNClient.configure do |config| | |
69 | - # TODO: remove | |
70 | - config.verify_ssl = false | |
71 | - config.logger.level = logger.level | |
72 | - end | |
73 | - | |
74 | 68 | if command_name == 'help' |
75 | 69 | help |
76 | 70 | exit |