Module: Baidu::OAuth

Defined in:
lib/baidu/oauth.rb,
lib/baidu/oauth/client.rb,
lib/baidu/oauth/flow/base.rb,
lib/baidu/oauth/flow/device.rb,
lib/baidu/oauth/rest_client.rb,
lib/baidu/oauth/flow/implicit_grant.rb,
lib/baidu/oauth/flow/authorization_code.rb,
lib/baidu/oauth/flow/client_credentials.rb

Defined Under Namespace

Modules: Flow Classes: Client, RESTClient

Constant Summary collapse

SITE =
'https://openapi.baidu.com'
BASE_PATH =
'/rest/2.0'
AUTHORIZATION_ENDPOINT =
'/oauth/2.0/authorize'
TOKEN_ENDPOINT =
'/oauth/2.0/token'
TOKEN_INFO_ENDPOINT =
'/oauth/2.0/tokeninfo'
DEVICE_ENDPOINT =
'/oauth/2.0/device/code'