authkeeper 0.1.21 → 0.1.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24d6293f45e335b1b43b75e318d098165cafe7eba6b7214620a162a3f67586fb
4
- data.tar.gz: 179280190ea3319f20b67bce39312a6ff524c393d3b149598ce87b932ce7ff16
3
+ metadata.gz: dcd4827de6e36446389c85fe5405bb4051bb9a669c4c6d37ee3be7224f5a52dd
4
+ data.tar.gz: ae6d2f643b217ca0928ce57f09c5056700453be0d6c3a3f41e75abd7a6485121
5
5
  SHA512:
6
- metadata.gz: 261130eea96d7d19899417a382064ff83fe6933cbcc068106a1cd2f2ee4ee4e069516bc6986f97ff5f6c6f6f1d9a07a0f058f02ee3178c8265c4ae49316b4fc2
7
- data.tar.gz: dfa742ba9004d7c8751e3dd3416cf515004a6d0cb3b63588d1dc29be579f42bb177c674d6c6d62cd68c70a4bb13ae827c6381086b9a4dcd06c9cf7944bab044c
6
+ metadata.gz: cce33b7a24869d762cf45e44f4c65d2bef990348fa635c64007f15104fe89d1cddc659cf3a00738662d49ab24dabd947820a75afe4e9f9f0b11759cbc89942c6
7
+ data.tar.gz: 1791e1a66983cd6cdd240f310e09b88ae031e6ed2e34f065f554eb5cfb581abc240061e4f5ae5396c75232817bf869105d46de2de96d8fde210a4692e33c3911
@@ -4,6 +4,7 @@ module Authkeeper
4
4
  module VkAdsAuthApi
5
5
  class Client < Authkeeper::HttpService::Client
6
6
  include Requests::AccessToken
7
+ include Requests::Info
7
8
 
8
9
  BASE_URL = 'https://ads.vk.ru/api/v2/oauth2/'
9
10
 
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Authkeeper
4
+ module VkAdsAuthApi
5
+ module Requests
6
+ module Info
7
+ def info(code:, client_id:, client_secret:)
8
+ form_post(
9
+ path: 'code_info',
10
+ body: {
11
+ access_token: access_token,
12
+ client_id: client_id,
13
+ client_secret: client_secret
14
+ },
15
+ headers: {
16
+ 'Content-Type' => 'application/x-www-form-urlencoded'
17
+ }
18
+ )
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Authkeeper
4
- VERSION = '0.1.21'
4
+ VERSION = '0.1.22'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdanov Anton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-08 00:00:00.000000000 Z
11
+ date: 2026-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -59,6 +59,7 @@ files:
59
59
  - app/lib/authkeeper/jwt_encoder.rb
60
60
  - app/lib/authkeeper/vk_ads_auth_api/client.rb
61
61
  - app/lib/authkeeper/vk_ads_auth_api/requests/access_token.rb
62
+ - app/lib/authkeeper/vk_ads_auth_api/requests/info.rb
62
63
  - app/lib/authkeeper/vk_auth_api/client.rb
63
64
  - app/lib/authkeeper/vk_auth_api/requests/access_token.rb
64
65
  - app/lib/authkeeper/vk_auth_api/requests/info.rb