isaca-rails 0.4.3 → 0.4.4

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: a24c8de72c7e007b582ebfd382f6dcd60e172587d27ad9b40dd9920af3af39cf
4
- data.tar.gz: 69f7de4cef4fe6cd6dab8d12e257b2241bf1927cd841f72c9d8fa27cf5b4e5ad
3
+ metadata.gz: 4fe6060b974dd5aa23cceefe3f42b345ee1ffcc840b267750dd439f03388fa27
4
+ data.tar.gz: 75850c732aff32b3b780dedba5a3e91670dbdd02590caac9a86fe8eb1c4095d9
5
5
  SHA512:
6
- metadata.gz: 189a4decef703065ccbf0bf5a7f6cc6b7802f626ee92cdacb3bd0541918c80fa987c8a0425dee1be0191dee64b7b2df719d5026e4eec97fd7a054d1e9b89d3db
7
- data.tar.gz: 71ddba6239591767b7ca562ba67b39b98abedd185434f509f985f77fd8c13f259541d15dda96f5f96e7a4b9be42691a4542719f92acb8f7699e45dc43de1e579
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
- link_to 'Create ISACA account',
46
- 'https://www.isaca.org/ecommerce/Pages/CreateAccountLite.aspx?pf=1', target: :blank
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
@@ -1,5 +1,5 @@
1
1
  module Isaca
2
2
  module Rails
3
- VERSION = '0.4.3'
3
+ VERSION = '0.4.4'
4
4
  end
5
5
  end
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.3
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-03-13 00:00:00.000000000 Z
11
+ date: 2019-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails