gatleon-rails 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/gatleon/rails/authform/concern.rb +3 -1
- data/lib/gatleon/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f98cc558d5079413a411d58dcf23a61099feeeb8159386716ea4e85f8249115
|
4
|
+
data.tar.gz: abdfab749809e8dd0e92dc8cf63cdc8d17708574cb09256236ccea6cc1bbe6f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c7b6410476598166f19d7e55dd86e222702ba0fbd136a0d35cafb1c797a8ba236fde3aaa72c6e8a0c7d595a6061cc1fad28966849ecfa36656d7ef127a66be8
|
7
|
+
data.tar.gz: 97bf311b819f42d0b587344bb84e1123747778ccd769c842c97aeae24bb306544a0299c1f101372cc7a46c79c9f318df74bf06d275e77995116ab47267d1acd0
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -20,8 +20,8 @@ Add a profile controller
|
|
20
20
|
|
21
21
|
```ruby
|
22
22
|
class ProfileController < ActionController::Base
|
23
|
-
AUTHFORM_FORM_PUBLIC_KEY = "" # Available at https://authform.gatleon.com. coming soon!
|
24
23
|
AUTHFORM_FORM_SECRET_KEY = "" # Available at https://authform.gatleon.com. coming soon!
|
24
|
+
AUTHFORM_FORM_PUBLIC_KEY = "" # Available at https://authform.gatleon.com. coming soon!
|
25
25
|
|
26
26
|
include Gatleon::Rails::Authform::Concern.new(public_key: AUTHFORM_FORM_PUBLIC_KEY, secret_key: AUTHFORM_FORM_SECRET_KEY)
|
27
27
|
|
@@ -19,7 +19,9 @@ module Gatleon
|
|
19
19
|
# defaults to current_user
|
20
20
|
define_method current_user_method_name do
|
21
21
|
begin
|
22
|
-
JSON.parse(cookies[_authform_user_cookie_key])["data"]
|
22
|
+
json = JSON.parse(cookies[_authform_user_cookie_key])["data"]
|
23
|
+
|
24
|
+
Gatleon::Rails::Authform::User.new(json: json, _form_secret_key: secret_key, _authform_base_url: _authform_base_url)
|
23
25
|
rescue
|
24
26
|
nil
|
25
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gatleon-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gatleon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: add authentication to your website - in 1 minute or less.
|
14
14
|
email:
|