prx_auth-rails 1.6.0 → 1.7.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: bf8c434fb9b4854b2dd16dd7a49a9cfbf3adcc371269e93b8fe0b1c82f7d8e44
4
- data.tar.gz: 2402bb437ecfb9873dee6fc5763a7fb63005549f78e8fa6d36315a08aacc50e2
3
+ metadata.gz: 9a692b8cc459acfdf888599245ff2db7d7ed92a3c967fbccacdd871aa4e78cd7
4
+ data.tar.gz: 17439da5ec7e7cc7f85d00083a47aaebb6d6bd495db25fa75581bf0758726d6c
5
5
  SHA512:
6
- metadata.gz: 7aac974b86051fb56c34cfc95526cff184f8301c7f109e3f2965be8b0db6bdbae79c2099ef768317354381333bb88c60de1608c1feeab0d8d075f54937590684
7
- data.tar.gz: f9042ad439ac44c6d7e3d9d3813cbf7940ad421a9ef536e2e80e9bed1f4bbaf8f28cc6371f14b237a2bd303c2d53dbdc745acaae21de7498cf4b9c209a8f9948
6
+ metadata.gz: 2a185d858e8a50a33e1f18c85e7dabf5f01a46fbc068dd74d222bb48ab03732ced79c60affd45f7e70efd628cfaaf259e9d4781c390470de86a06dd46158bf0c
7
+ data.tar.gz: d8f2b9c1c1367c2954575950f1ddc731f329f59d111efcb11282d78651a06cf22c74557f834d51ff6fa3ca7360d1cb06ad4736cd2a41d0ff28c5554913fcc193
@@ -12,15 +12,17 @@ function prxInjectScript(src, callback) {
12
12
  }
13
13
 
14
14
  document.addEventListener('DOMContentLoaded', function () {
15
- const idHost = 'https://<%= PrxAuth::Rails.configuration.id_host %>';
15
+
16
+ const widget = document.getElementById('prx-user-widget');
17
+ const account = document.getElementById('prx-user-widget-menu-account');
18
+
19
+ const idHost = 'https://' + widget.getAttribute('data-id-host');;
16
20
  const scriptUrl = idHost + '/widget.js';
17
21
 
18
22
  prxInjectScript(scriptUrl, function () {
19
23
  const signIn = new PRXSignIn(idHost);
20
24
 
21
25
  signIn.signedIn(function (prx) {
22
- const widget = document.getElementById('prx-user-widget');
23
- const account = document.getElementById('prx-user-widget-menu-account');
24
26
 
25
27
  if (!prx.userinfo) {
26
28
  // Not logged in
@@ -1,5 +1,5 @@
1
1
  module PrxAuth
2
2
  module Rails
3
- VERSION = "1.6.0"
3
+ VERSION = "1.7.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prx_auth-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Rhoden