You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- module EducoderOauth
- class << self
- attr_accessor :client_id, :client_secret, :base_url
-
- def logger
- @_logger ||= STDOUT
- end
-
- def logger=(l)
- @_logger = l
- end
-
- def oauth_url(redirect_uri)
- "#{base_url}/oauth2?call_url=/oauth/authorize?client_id=#{client_id}&redirect_uri=#{URI.encode_www_form_component(redirect_uri)}&response_type=code"
- end
-
- end
- end
|