module OSDN
module CLI
- @@client_id = "fd573bffcd132857b32a438d3f4b6f575580f286afc94a45e220db244919163e"
- @@client_secret = "92b4792000e091668ccf2ac95981c35fd3ef347450a4fde1a9a3344e99100fa1"
+ @@client_id = "osdn-cli"
+ @@client_secret = "not-secret"
def client_id
@@client_id
end
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
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