OSDN Git Service

Change to production env.
authorTatsuki Sugiura <sugi@nemui.org>
Fri, 11 Mar 2016 21:10:19 +0000 (06:10 +0900)
committerTatsuki Sugiura <sugi@nemui.org>
Fri, 11 Mar 2016 21:10:19 +0000 (06:10 +0900)
lib/osdn/cli.rb
lib/osdn/cli/command/login.rb
lib/osdn/cli/runner.rb

index 1b4d2fd..fc4d853 100644 (file)
@@ -11,8 +11,8 @@ require 'json'
 
 module OSDN
   module CLI
-    @@client_id = "fd573bffcd132857b32a438d3f4b6f575580f286afc94a45e220db244919163e"
-    @@client_secret = "92b4792000e091668ccf2ac95981c35fd3ef347450a4fde1a9a3344e99100fa1"
+    @@client_id = "osdn-cli"
+    @@client_secret = "not-secret"
     def client_id
       @@client_id
     end
index 9d68b06..c8cdadc 100644 (file)
@@ -4,7 +4,7 @@ module OSDN; module CLI; module Command
       logger.debug "Trying login"
       scope = %w(profile group group_write)
 
-      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')}"
+      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')}"
 
       launch_brwoser auth_url
       puts
index 3b7934f..beb3b8d 100644 (file)
@@ -65,12 +65,6 @@ module OSDN
           exit 1
         end
 
-        OSDNClient.configure do |config|
-          # TODO: remove
-          config.verify_ssl = false
-          config.logger.level = logger.level
-        end
-
         if command_name == 'help'
           help
           exit