action_auth 0.2.6 → 0.2.8

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: 8cc6e675d4345ed6c6986a5f317a8f9391315e3ddbc3c6d0a1606298fcc077a3
4
- data.tar.gz: 716d16126a59ddd907060874799b548ccb991ae9f0e4240bf8224894a2e1cd22
3
+ metadata.gz: d8811e289816e2dfabd2b7437b6f877abd02064151218f3be79ef05572ccfd4a
4
+ data.tar.gz: be2a7a8b5e8f63c9f6b5f76e04a828f2ac05974f8fd2ba19a244e562ef92eca1
5
5
  SHA512:
6
- metadata.gz: 4766a371ef3e17beed05240ba91f3a26c8a6c9b25c9482c31a7ca8320d81c44d453185fabbbc880fd896e4bf9d843dca8272b393b6ac6e83fe82870e276ce503
7
- data.tar.gz: 0f56ca221e5fba51bffe140e47b9f777aabff4d3985618e528752119fd900e466950b73ebb029d5a8c59161ed16aa340437a0e725381ebdd99dc632b443800bc
6
+ metadata.gz: c78ba18c296297ec6057ee91b0b9ed5d28813e2cd4f0786a297064f79105877b30730d64ee41743c42402027457971e121ba8913d74ce975a9a2a05498a26ce5
7
+ data.tar.gz: 66dfffe305815384216de8ebe9beb6d2195050a4a28d231c432aa1b92d80bca87cac4056685fe3cdfa1bfd63829265f20a468385757d25e8c4de2a13ca4dd8b9
@@ -5,7 +5,7 @@ module ActionAuth
5
5
  has_many :action_auth_sessions, dependent: :destroy,
6
6
  class_name: "ActionAuth::Session", foreign_key: "action_auth_user_id"
7
7
 
8
- if ActionAuth.configuration.webauthn_enabled?
8
+ if ActionAuth.configuration&.webauthn_enabled?
9
9
  has_many :action_auth_webauthn_credentials, dependent: :destroy,
10
10
  class_name: "ActionAuth::WebauthnCredential", foreign_key: "action_auth_user_id"
11
11
  end
@@ -29,7 +29,7 @@
29
29
  </table>
30
30
  </div>
31
31
 
32
- <% if ActionAuth.configuration.webauthn_enabled? %>
32
+ <% if ActionAuth.configuration&.webauthn_enabled? %>
33
33
  <% if current_user.second_factor_enabled? %>
34
34
  <h3>Your Security Keys:</h3>
35
35
  <table class="action-auth--table">
@@ -6,7 +6,7 @@
6
6
  <%= csp_meta_tag %>
7
7
  <%= stylesheet_link_tag "action_auth/application", media: "all" %>
8
8
  <%= javascript_include_tag "action_auth/application", "data-turbo-track": "reload", type: "module" %>
9
- <% if ActionAuth.configuration.webauthn_enabled? %>
9
+ <% if ActionAuth.configuration&.webauthn_enabled? %>
10
10
  <%= tag :meta, name: :webauthn_auth_url, content: action_auth.webauthn_credential_authentications_url %>
11
11
  <%= tag :meta, name: :webauthn_cred_url, content: action_auth.webauthn_credentials_url %>
12
12
  <%= tag :meta, name: :webauthn_redirect_url, content: action_auth.sessions_url %>
@@ -6,7 +6,7 @@
6
6
  <%= csp_meta_tag %>
7
7
  <%= stylesheet_link_tag "action_auth/application", media: "all" %>
8
8
  <%= javascript_include_tag "action_auth/application", "data-turbo-track": "reload", type: "module" %>
9
- <% if ActionAuth.configuration.webauthn_enabled? %>
9
+ <% if ActionAuth.configuration&.webauthn_enabled? %>
10
10
  <%= tag :meta, name: :webauthn_auth_url, content: action_auth.webauthn_credential_authentications_url %>
11
11
  <%= tag :meta, name: :webauthn_cred_url, content: action_auth.webauthn_credentials_url %>
12
12
  <%= tag :meta, name: :webauthn_redirect_url, content: action_auth.sessions_url %>
data/config/routes.rb CHANGED
@@ -11,7 +11,7 @@ ActionAuth::Engine.routes.draw do
11
11
  resource :password_reset, only: [:new, :edit, :create, :update]
12
12
  end
13
13
 
14
- if ActionAuth.configuration.webauthn_enabled?
14
+ if ActionAuth.configuration&.webauthn_enabled?
15
15
  resources :webauthn_credentials, only: [:new, :create, :destroy] do
16
16
  post :options, on: :collection, as: 'options_for'
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module ActionAuth
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Kimura