openstax_accounts 9.8.1 → 9.9.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: 52fa7d9305c25705166caab1576b661a18a542e9a1482fa9e4677f8e076f6be1
4
- data.tar.gz: a7069ffb3c2145b110b91188029fb3dc89c3622740c7157a3cfabe2a57b22c2e
3
+ metadata.gz: '052890df79906093f92d5a4896aea0cf95c38162531e22b15bc362aaa1d6c338'
4
+ data.tar.gz: 604b36d975e723a09f065eca4fb9cd0da55bf87fd83a6b9575f281466cc3b050
5
5
  SHA512:
6
- metadata.gz: 1ca35029dd45866b05b0dca01e49f62968e3427f85ebf17f86d190ace2b27b2ba9d30f4bf3dffb2ae044583da661d7eabd2730eae2404595b67e8b7dc172edbe
7
- data.tar.gz: 586b18d5e8508c99e3a0211fd6d20d17c93f27e25bef8828abbcc9d198b29b6433b2834b2bedc24d79e19cc0247bb68886e91efb68d2a4c19758ffb647288b04
6
+ metadata.gz: 5896c59ae817c36644eb2efd04de95670e6ec35655b39b1d46f6890dfde628a7eadb8e9906eb50c6ca4f4293b8cff7d7bf679368a872b29944b41260a55d9eaa
7
+ data.tar.gz: ca1f9cc44b7d3e12cda586678f03354d8e73d7b87e6d5b00ed4fb32aa8fce4ce67aed1b03ad62fb9f70140893cc578282436695467a3c240400aa1c018b1b498
@@ -35,9 +35,9 @@ module OpenStax
35
35
  # (or at least eventually) the Accounts logout URL so that users can't sign back
36
36
  # in automagically.
37
37
  sign_out!
38
- redirect_to configuration.enable_stubbing? ?
38
+ redirect_to(configuration.enable_stubbing? ?
39
39
  main_app.root_url :
40
- configuration.logout_redirect_url(request)
40
+ configuration.logout_redirect_url(request), allow_other_host: true)
41
41
  end
42
42
  end
43
43
 
@@ -48,6 +48,7 @@ module OpenStax
48
48
  order_by: search_params.order_by,
49
49
  page: search_params.page,
50
50
  per_page: search_params.per_page}
51
+
51
52
  out = run(OpenStax::Accounts::SearchAccounts, params).outputs
52
53
  outputs.total_count = out.total_count
53
54
 
data/config/routes.rb CHANGED
@@ -4,7 +4,7 @@ OpenStax::Accounts::Engine.routes.draw do
4
4
 
5
5
  # Shortcut to OmniAuth route that redirects to the Accounts server
6
6
  # This is provided by OmniAuth and is not in the SessionsController
7
- get '/auth/openstax', to: ->(env) { [ 404, {}, [ '' ] ] }, as: 'openstax_login'
7
+ post '/auth/openstax', to: ->(env) { [ 404, {}, [ '' ] ] }, as: 'openstax_login'
8
8
 
9
9
  if OpenStax::Accounts.configuration.enable_stubbing?
10
10
  # User profile route
@@ -1,5 +1,6 @@
1
1
  require 'omniauth'
2
2
  require 'omniauth-oauth2'
3
+ require 'omniauth/rails_csrf_protection'
3
4
 
4
5
  module OmniAuth
5
6
  module Strategies
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Accounts
3
- VERSION = '9.8.1'
3
+ VERSION = '9.9.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.8.1
4
+ version: 9.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-02 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,32 +16,32 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '6.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.0'
22
+ version: '8.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: '6.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.0'
32
+ version: '8.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: omniauth
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "<"
37
+ - - ">"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '2.0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "<"
44
+ - - ">"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '2.0'
47
47
  - !ruby/object:Gem::Dependency
@@ -58,6 +58,20 @@ dependencies:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: omniauth-rails_csrf_protection
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: oauth2
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +120,14 @@ dependencies:
106
120
  requirements:
107
121
  - - ">="
108
122
  - !ruby/object:Gem::Version
109
- version: '0'
123
+ version: 12.1.0
110
124
  type: :runtime
111
125
  prerelease: false
112
126
  version_requirements: !ruby/object:Gem::Requirement
113
127
  requirements:
114
128
  - - ">="
115
129
  - !ruby/object:Gem::Version
116
- version: '0'
130
+ version: 12.1.0
117
131
  - !ruby/object:Gem::Dependency
118
132
  name: keyword_search
119
133
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +148,14 @@ dependencies:
134
148
  requirements:
135
149
  - - ">="
136
150
  - !ruby/object:Gem::Version
137
- version: '0'
151
+ version: 5.1.1
138
152
  type: :runtime
139
153
  prerelease: false
140
154
  version_requirements: !ruby/object:Gem::Requirement
141
155
  requirements:
142
156
  - - ">="
143
157
  - !ruby/object:Gem::Version
144
- version: '0'
158
+ version: 5.1.1
145
159
  - !ruby/object:Gem::Dependency
146
160
  name: openstax_api
147
161
  requirement: !ruby/object:Gem::Requirement