cognito_idp 0.1.0 → 0.2.0

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: 3d8c5449a8a464b8b744fb1d916c38c12dfb9a31ad70e2cb3a2f8a4757ad627d
4
- data.tar.gz: bc4e834f797c2c677b600eb3ffd6efd5151a087b0b974381cf33699c6898dc21
3
+ metadata.gz: 73a9f1c7bb9ed725f35658e0b089125a361fbffd5d173758dd740a6e93b205b5
4
+ data.tar.gz: 72608701acb079b2b2c7e31db55eefd2f40662e7c7f9e293cd34b76af829c808
5
5
  SHA512:
6
- metadata.gz: 999d3d47a672c0de5891b5cbe865d54d3deeffcd1e5394dd49667cc4199249fa9f06518552ce8467279db01ca972082085e4344371ebcebd345c0262e6af7169
7
- data.tar.gz: aab452ad535d4379cc28490d239f03db2991e07b849ecae0052775e7f97ba667b956eebb5853dc027d3b0b5b5b1dd06a5f96c04edcc67417c2a1955a859c8b3f
6
+ metadata.gz: 8e0bc41343ca5ea94f72c2f1c46253be9b029f27ba162621fc9b4fe1ff9325c796f2079ec64eada55792059621e001e521f88f3b3f72fb993568a17bc24782a3
7
+ data.tar.gz: bb1f296f9e860c1ef871ddea30927d1d865812860d58650f36adb9a81a5086fc2134573ae03229581c4eeb6825ca69970325da6f00c956404286386608587d9f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
- ## [Unreleased]
1
+ # Changelog
2
2
 
3
- ## [0.1.0] - 2023-11-29
3
+ ## [0.2.0](https://github.com/appercept/cognito_idp-ruby/tree/0.2.0) (2025-11-19)
4
4
 
5
- - Initial release
5
+ [Full Changelog](https://github.com/appercept/cognito_idp-ruby/compare/v0.1.1...0.2.0)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - feat: Add CognitoIdp::Token\#refresh\_token [\#3](https://github.com/appercept/cognito_idp-ruby/pull/3) ([rhatherall](https://github.com/rhatherall))
10
+
11
+ ## [v0.1.1](https://github.com/appercept/cognito_idp-ruby/tree/v0.1.1) (2023-12-07)
12
+
13
+ [Full Changelog](https://github.com/appercept/cognito_idp-ruby/compare/v0.1.0...v0.1.1)
14
+
15
+ **Fixed bugs:**
16
+
17
+ - NoMethodError: undefined method `key?' for OpenStruct [\#1](https://github.com/appercept/cognito_idp-ruby/issues/1)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - fix: UserInfo always responds to missing [\#2](https://github.com/appercept/cognito_idp-ruby/pull/2) ([rhatherall](https://github.com/rhatherall))
22
+
23
+ ## [v0.1.0](https://github.com/appercept/cognito_idp-ruby/tree/v0.1.0) (2023-12-02)
24
+
25
+ [Full Changelog](https://github.com/appercept/cognito_idp-ruby/compare/6a859f5b15c9989aded52c92af8b99197ec5860d...v0.1.0)
26
+
27
+
28
+
29
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -1,20 +1,16 @@
1
- # CognitoIdp
1
+ # CognitoIdp [![Ruby](https://github.com/appercept/cognito_idp-ruby/actions/workflows/main.yml/badge.svg)](https://github.com/appercept/cognito_idp-ruby/actions/workflows/main.yml)
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cognito_idp/client`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Client for interacting with Amazon Cognito IdP (User Pools) endpoints.
6
4
 
7
5
  ## Installation
8
6
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
7
  Install the gem and add to the application's Gemfile by executing:
12
8
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
9
+ $ bundle add cognito_idp
14
10
 
15
11
  If bundler is not being used to manage dependencies, install the gem by executing:
16
12
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
13
+ $ gem install cognito_idp
18
14
 
19
15
  ## Usage
20
16
 
@@ -28,7 +24,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
24
 
29
25
  ## Contributing
30
26
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/appercept/cognito_idp-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/appercept/cognito_idp-client/blob/main/CODE_OF_CONDUCT.md).
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/appercept/cognito_idp-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/appercept/cognito_idp-ruby/blob/main/CODE_OF_CONDUCT.md).
32
28
 
33
29
  ## License
34
30
 
@@ -36,4 +32,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
36
32
 
37
33
  ## Code of Conduct
38
34
 
39
- Everyone interacting in the CognitoIdp::Client project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/cognito_idp-client/blob/main/CODE_OF_CONDUCT.md).
35
+ Everyone interacting in the CognitoIdp project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/appercept/cognito_idp-ruby/blob/main/CODE_OF_CONDUCT.md).
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "base64"
3
4
  require "faraday"
4
5
 
5
6
  module CognitoIdp
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CognitoIdp
4
4
  class Token
5
- attr_reader :access_token, :id_token, :token_type, :expires_at, :expires_in
5
+ attr_reader :access_token, :id_token, :token_type, :expires_at, :expires_in, :refresh_token
6
6
 
7
7
  def initialize(token_hash)
8
8
  token_hash.transform_keys(&:to_sym).tap do |values|
@@ -10,6 +10,7 @@ module CognitoIdp
10
10
  @id_token = values[:id_token]
11
11
  @token_type = values[:token_type]
12
12
  @expires_in = values[:expires_in]
13
+ @refresh_token = values[:refresh_token]
13
14
  end
14
15
  @expires_at = Time.now + expires_in unless expires_in.nil?
15
16
  end
@@ -14,7 +14,7 @@ module CognitoIdp
14
14
  end
15
15
 
16
16
  def respond_to_missing?(method, include_private = false)
17
- @attributes.key?(method)
17
+ true
18
18
  end
19
19
  end
20
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CognitoIdp
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cognito_idp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Hatherall
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-12-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: base64
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: faraday
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -55,7 +68,6 @@ metadata:
55
68
  homepage_uri: https://github.com/appercept/cognito_idp-ruby
56
69
  source_code_uri: https://github.com/appercept/cognito_idp-ruby
57
70
  changelog_uri: https://github.com/appercept/cognito_idp-ruby/CHANGELOG.md
58
- post_install_message:
59
71
  rdoc_options: []
60
72
  require_paths:
61
73
  - lib
@@ -70,8 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
82
  - !ruby/object:Gem::Version
71
83
  version: '0'
72
84
  requirements: []
73
- rubygems_version: 3.4.22
74
- signing_key:
85
+ rubygems_version: 3.7.2
75
86
  specification_version: 4
76
87
  summary: Amazon Cognito IdP (User Pools) Client
77
88
  test_files: []