Class: OmniAuth::Strategies::TiktokLoginkit
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::TiktokLoginkit
show all
- Defined in:
- lib/omniauth/strategies/tiktok_loginkit.rb
Overview
rubocop:disable Style/Documentation
Defined Under Namespace
Classes: AccessToken, NoAuthorizationCodeError
Constant Summary
collapse
- USER_INFO_URL =
"https://open.tiktokapis.com/v2/user/info/"
Instance Method Summary
collapse
Instance Method Details
#authorize_params ⇒ Object
52
53
54
55
56
|
# File 'lib/omniauth/strategies/tiktok_loginkit.rb', line 52
def authorize_params
super.tap do |params|
params[:client_key] = options.client_key
end
end
|
#callback_url ⇒ Object
65
66
67
|
# File 'lib/omniauth/strategies/tiktok_loginkit.rb', line 65
def callback_url
full_host + callback_path
end
|
#token_params ⇒ Object
58
59
60
61
62
63
|
# File 'lib/omniauth/strategies/tiktok_loginkit.rb', line 58
def token_params
super.tap do |params|
params[:client_key] = options.client_key
params[:client_secret] = options.client_secret
end
end
|