cognito_idp_rails 0.1.0 → 0.1.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3721cad7a6153962cb61d6ff372bb12649c90b155eb8973355fe217320972307
|
|
4
|
+
data.tar.gz: e881041ce6006f72682e85137a922ab79b657eb040ec5e9e76b51a22e2e6bf01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e34ece210726e1518a40eaee4f325821c8227b75939aabf6fee7c861f42f539275af90e91bd5e738ecba01ccb9214d89ebaa00e452d3a0ded45f03447b6efe5
|
|
7
|
+
data.tar.gz: 7ed7cc524fb0d89401d8b320d108a09501fa0065e4bea98b9d94a6d697c4f49162b6a6a3d0e508086f09e5434f70d6071ac8eb8f110a61ae41e9d0de88089048
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
|
16
16
|
|
|
17
17
|
After adding the gem to your application, run the install generator:
|
|
18
18
|
|
|
19
|
-
$ rails generate
|
|
19
|
+
$ rails generate cognito_idp_rails:install
|
|
20
20
|
|
|
21
21
|
This generator will add `cognito_idp` to your routes and install an initializer at `config/initializers/cognito_idp.rb`.
|
|
22
22
|
|
data/Rakefile
CHANGED
|
@@ -4,7 +4,7 @@ CognitoIdpRails.configure do |config|
|
|
|
4
4
|
config.domain = ENV["COGNITO_DOMAIN"]
|
|
5
5
|
config.on_valid_login = lambda do |token, user_info, session|
|
|
6
6
|
# 1. Find or create a user.
|
|
7
|
-
# user = User.where(identifier: user_info.sub).
|
|
7
|
+
# user = User.where(identifier: user_info.sub).first_or_create do |user|
|
|
8
8
|
# user.email = user_info.email
|
|
9
9
|
# end
|
|
10
10
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cognito_idp_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Hatherall
|
|
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
82
82
|
requirements:
|
|
83
83
|
- - ">="
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version:
|
|
85
|
+
version: 2.6.0
|
|
86
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
requirements:
|
|
88
88
|
- - ">="
|