authkeeper 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/helpers/authkeeper/application_helper.rb +5 -0
- data/lib/authkeeper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d6e8bb0f657638eb4551de52d7f344bf1682cc1d5a80cdd5920cbb5f35cbc4d
|
|
4
|
+
data.tar.gz: b4c45bbc2fcd7d99f4bead86ad62464aeb981cd1373021cad52f211ff3421730
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d16ff5dd4c99133daaf4c428884856896873d22cc801d553712f92b463a17eb43b9ef876f1c92e49f20430e29897f9fb03b749a82725dbc5ffafea5b19ca2be
|
|
7
|
+
data.tar.gz: 4483fae3e7215ec1d7e41d3e6e43ccc53aca71d1007fda192418e04b22204a508b63028d9208b3bba33b244577c50c746d6bc3d382f0aac81dbe9dc1280bfcc2
|
|
@@ -11,6 +11,7 @@ module Authkeeper
|
|
|
11
11
|
when :yandex then yandex_oauth_link
|
|
12
12
|
when :vk then vk_oauth_link(oauth_data)
|
|
13
13
|
when :vk_ads then vk_ads_oauth_link(oauth_data)
|
|
14
|
+
when :avito then avito_oauth_link(oauth_data)
|
|
14
15
|
end
|
|
15
16
|
end
|
|
16
17
|
|
|
@@ -44,6 +45,10 @@ module Authkeeper
|
|
|
44
45
|
def vk_ads_oauth_link(oauth_data)
|
|
45
46
|
"https://ads.vk.ru/hq/settings/access?action=oauth2&response_type=code&client_id=#{oauth_data[:client_id]}&redirect_uri=#{oauth_data[:redirect_url]}&scope=#{oauth_data[:scope]}&state=#{oauth_data[:state]}"
|
|
46
47
|
end
|
|
48
|
+
|
|
49
|
+
def avito_oauth_link(oauth_data)
|
|
50
|
+
"https://avito.ru/oauth?response_type=code&client_id=#{oauth_data[:client_id]}&scope=#{oauth_data[:scope]}&state=#{oauth_data[:state]}"
|
|
51
|
+
end
|
|
47
52
|
# rubocop: enable Layout/LineLength
|
|
48
53
|
|
|
49
54
|
def value(provider, key)
|
data/lib/authkeeper/version.rb
CHANGED