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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa250f4e4682c142505fe3a2438c49872edb1c4030297607e342ba98b6dc0006
4
- data.tar.gz: 65461cf8b9d1170a0413ac602b90d8a7f5e31590c13524ac4d2c8e2a7195f4a0
3
+ metadata.gz: 7f98cc558d5079413a411d58dcf23a61099feeeb8159386716ea4e85f8249115
4
+ data.tar.gz: abdfab749809e8dd0e92dc8cf63cdc8d17708574cb09256236ccea6cc1bbe6f2
5
5
  SHA512:
6
- metadata.gz: 1399334d4857f90c62d56a29f00c7abb5c04b2aafb996d6e6409e1b12a50dfdb124748943467c7dc2afb44c1775546cff6f79d113cf2d39e83cde5dc75f6be09
7
- data.tar.gz: 748b6a39bf95df531e76f5b5b64e10912768524efc2216af439d3c423ba93f95d71c71a7ec8e1dec3ff5b121f8554088dea5170c907009dfbf9ba73375807273
6
+ metadata.gz: 0c7b6410476598166f19d7e55dd86e222702ba0fbd136a0d35cafb1c797a8ba236fde3aaa72c6e8a0c7d595a6061cc1fad28966849ecfa36656d7ef127a66be8
7
+ data.tar.gz: 97bf311b819f42d0b587344bb84e1123747778ccd769c842c97aeae24bb306544a0299c1f101372cc7a46c79c9f318df74bf06d275e77995116ab47267d1acd0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gatleon-rails (0.2.0)
4
+ gatleon-rails (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
@@ -1,5 +1,5 @@
1
1
  module Gatleon
2
2
  module Rails
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  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.2.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-21 00:00:00.000000000 Z
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: