openstax_accounts 9.8.0 → 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: 3cd4aa7a22ea69ad3166b90650c73a63b0bcdf5b029bb6d1d3405d45c3769fdc
4
- data.tar.gz: 4d0308a4b059dc5d4f81042995d930f60a571c44f6bdf432f9718b771f198b75
3
+ metadata.gz: '052890df79906093f92d5a4896aea0cf95c38162531e22b15bc362aaa1d6c338'
4
+ data.tar.gz: 604b36d975e723a09f065eca4fb9cd0da55bf87fd83a6b9575f281466cc3b050
5
5
  SHA512:
6
- metadata.gz: 9594b3dfa88ac6e1a79ab3c75e13a895eea7661827050c61f7573983a44696a69a29d0433dc23937a3ff18d745ec1e52e15dba01682be7d095ff2dcc5aaa62cd
7
- data.tar.gz: d808626f78220265082eaac3855b4f47700c843d0e36564ff67e4e3e6194790fca1c9497aab2093ee1e8a8da8387f41603ee9ee9c2fdfe36caeaa7f247d04516
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
 
@@ -39,7 +39,8 @@ module OpenStax::Accounts
39
39
  :designer,
40
40
  :other,
41
41
  :adjunct,
42
- :homeschool
42
+ :homeschool,
43
+ :researcher
43
44
  ]
44
45
 
45
46
  enum school_type: [
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.0'
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.0
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: 2021-11-15 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
@@ -226,6 +240,20 @@ dependencies:
226
240
  - - ">="
227
241
  - !ruby/object:Gem::Version
228
242
  version: '0'
243
+ - !ruby/object:Gem::Dependency
244
+ name: multi_json
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
229
257
  - !ruby/object:Gem::Dependency
230
258
  name: shoulda-matchers
231
259
  requirement: !ruby/object:Gem::Requirement
@@ -393,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
393
421
  - !ruby/object:Gem::Version
394
422
  version: '0'
395
423
  requirements: []
396
- rubygems_version: 3.1.4
424
+ rubygems_version: 3.1.6
397
425
  signing_key:
398
426
  specification_version: 4
399
427
  summary: Rails common code and bindings for the 'accounts' API