bastion 0.3.0 → 0.3.1
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 +8 -8
- data/app/assets/javascripts/bastion/auth/auth.module.js +7 -1
- data/lib/bastion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZmZkODBmYTE4ZGUzY2E3ZDAwYzFmNmZiOWRkMzMwYTI3NDY0MzBhOQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NDMyOGVjYzE2ZDZjM2Q4YjdhZWYzYzE4OTM4NmExNDY2MTc4NmY4MQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YTNlYTM4MDRjNWMwMmUxY2YwZGJlNzY1MTEwY2U4OTFhMjMzZjk0YmVmMjg4
|
|
10
|
+
ZWJkNjVhOTVjODViZGQ2MjlhMDExNzNhZjZlMzVhYjhmNjJhZWY0NDVkOGYw
|
|
11
|
+
M2E4ZTJkNjJjZWU4ODNhMDUzYmJjMjljYjk4YmMwZWM0MDhlZDU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MGQ1NTE2NjYwM2RjYjczZWE3ZTA4ZjQ2ZjQ3OTM4MDYzNmJkZTQ3NGU4MGU4
|
|
14
|
+
YzMxNTVmMWE1MzJhNWFiYzM5NTJkZDk3YWEzMDM4NGNhYTI0OGY1N2EyYzE1
|
|
15
|
+
MmM2NGQyOWQzOGFjMWFiY2Y4MWRlNzI0MzFhNzU0MzY2YmI4MDI=
|
|
@@ -42,7 +42,13 @@ angular.module('Bastion.auth').config(['$httpProvider', '$provide',
|
|
|
42
42
|
translate = $injector.get('translate');
|
|
43
43
|
|
|
44
44
|
if (response.status === 401) {
|
|
45
|
-
|
|
45
|
+
// Reload current page if API request in order to
|
|
46
|
+
// ensure correct redirect upon login.
|
|
47
|
+
if (response.config.url.indexOf('api') >= 0) {
|
|
48
|
+
$window.location.reload();
|
|
49
|
+
} else {
|
|
50
|
+
$window.location.href = '/users/login';
|
|
51
|
+
}
|
|
46
52
|
} else if (response.status === 403) {
|
|
47
53
|
// Add unauthorized display message to response
|
|
48
54
|
message = translate('You are not authorized to perform this action.');
|
data/lib/bastion/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bastion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katello
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: angular-rails-templates
|