isaca-rails 0.4.3 → 0.4.4
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 +4 -4
- data/app/helpers/isaca/rails/application_helper.rb +3 -2
- data/lib/isaca/rails/version.rb +1 -1
- data/lib/isaca/rails.rb +7 -0
- 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: 4fe6060b974dd5aa23cceefe3f42b345ee1ffcc840b267750dd439f03388fa27
|
|
4
|
+
data.tar.gz: 75850c732aff32b3b780dedba5a3e91670dbdd02590caac9a86fe8eb1c4095d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f63712ed6eb5a05093bb27721313e6d0ea572d9a6ea2bace47f70b7779a091bd87cdf3416cc9ef78946dbf2caa37def56e08a06a315c737ec01eebbc6f3079c4
|
|
7
|
+
data.tar.gz: 78877a47d9c853d04d0e795d09b85fce6d781896639dc2ed71c12e60bc8a742553fd234b040f35a3960ed8f25fbe81e6e5693dde21cdfa3d1c96edf7a92130e2
|
|
@@ -42,7 +42,8 @@ module Isaca::Rails::ApplicationHelper
|
|
|
42
42
|
|
|
43
43
|
# Provides a link to create an ISACA account
|
|
44
44
|
def link_to_create_isaca_account
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
url = 'https://www.isaca.org/ecommerce/Pages/CreateAccountLite.aspx?pf=1'
|
|
46
|
+
url.concat("?ReturnURL=#{Isaca::Rails.configuration.redirect_after_account_creation}") if Isaca::Rails.configuration.redirect_after_account_creation
|
|
47
|
+
link_to 'Create ISACA account', url, target: :blank
|
|
47
48
|
end
|
|
48
49
|
end
|
data/lib/isaca/rails/version.rb
CHANGED
data/lib/isaca/rails.rb
CHANGED
|
@@ -95,6 +95,13 @@ module Isaca
|
|
|
95
95
|
# Default 15 minutes
|
|
96
96
|
attr_accessor :cache_sso_details_expires_in
|
|
97
97
|
|
|
98
|
+
# Will append RedirectURL to Isaca Account creation wizard URI if value is not nil
|
|
99
|
+
#
|
|
100
|
+
# Isaca::Rails.configure {|config| config.redirect_after_account_creation = "https://myapp.isaca.org"}
|
|
101
|
+
#
|
|
102
|
+
# Default nil
|
|
103
|
+
attr_accessor :redirect_after_account_creation
|
|
104
|
+
|
|
98
105
|
def initialize
|
|
99
106
|
@redirect_for_consent = true
|
|
100
107
|
@cache_sso = false
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isaca-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Orahood
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|