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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTc4M2VjZmVmNjhkZWMwMDEyYzM2NmIxM2M2M2VmODViMzBlNGFhMQ==
4
+ ZmZkODBmYTE4ZGUzY2E3ZDAwYzFmNmZiOWRkMzMwYTI3NDY0MzBhOQ==
5
5
  data.tar.gz: !binary |-
6
- N2FiZTY2MjkxMzU4NjMwNjJmZWE2YTNhYmQ0ZDA0MmJiNDI2NDMxZQ==
6
+ NDMyOGVjYzE2ZDZjM2Q4YjdhZWYzYzE4OTM4NmExNDY2MTc4NmY4MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzA2ZDVkMzI1MGNiODY5ZGU5NWU1YzY4NGQ1MjcxODMwZTQ0MmM2YTIwZjkz
10
- YjNkMDAwMjQ4NmQ3NjE0YWEzNzYxMDg3YzA2MzUwMzU4MjBkMWIxZWM5NTZm
11
- NjY2Mzg4NWVhMTY3NWMxNDk0NWUzYzk4MmUwOWJkODhjYTFjOWQ=
9
+ YTNlYTM4MDRjNWMwMmUxY2YwZGJlNzY1MTEwY2U4OTFhMjMzZjk0YmVmMjg4
10
+ ZWJkNjVhOTVjODViZGQ2MjlhMDExNzNhZjZlMzVhYjhmNjJhZWY0NDVkOGYw
11
+ M2E4ZTJkNjJjZWU4ODNhMDUzYmJjMjljYjk4YmMwZWM0MDhlZDU=
12
12
  data.tar.gz: !binary |-
13
- OWIzMTY3ZDI0MjZhYWYyNjNiNmNlMzI4NmExNzFkMjZjYTk0OTQ4NzBlNjI4
14
- ZGU1NzBjYTM0ZGNiMjMxYjIzOTU4Mjc2MmQwYjg2YWQxNDI2NmRlZTQ0MzZl
15
- Mjc3YTMyMDlkMjBjZTNlN2Q2NDIxMDc2NGI5MzE5MzI5NzdlZDE=
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
- $window.location.href = '/users/login';
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.');
@@ -1,3 +1,3 @@
1
1
  module Bastion
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-20 00:00:00.000000000 Z
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