authorio 0.8.5 → 0.8.7

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: e4cd85ad8ec9b0e70f4d276f7c600d5cc3ebab5b04f0f0313da9f6151e78d680
4
- data.tar.gz: 7ec85565cc8fb4ea711836ab8069f7062929d13af6f1520809095bdee7c859b9
3
+ metadata.gz: f44cb9e20ad1a6c77dcb24da16623276d876ef4ebd0f3e630e3f27d72587646c
4
+ data.tar.gz: '08ca2eff8c2cb5a77801af0705981220499f58acfefa6f0b103ebda5c5f2eb62'
5
5
  SHA512:
6
- metadata.gz: 845bc518d44332a7e71eabd020da0f450979dcf35ec35539850ee40b931c270c7c89f6205fa021b27b78b86c07fbcd1b36354c49c79c28d6e5d2b8ea501aad00
7
- data.tar.gz: ca1f67ba7804bd630ce55713cfd1c3f2b542f04781583ec165073c1ad0eea829bef439d362af9e302e530da8ccc650736b00039b1151e7559b1cb8b8cdcc64b2
6
+ metadata.gz: f9d5a642af5a2a76f7d3ff12bafcd345bdfb8ab92f3792aa0f24d1ff8db29790e3cc37aab8474f3342660181cee08cf4af25f3c45fa3c8d2fef041697ed60b8f
7
+ data.tar.gz: 363031d389f74620cff7ae761935bcaa225d1c3c96ebc24122b9d7f45a746aeec46315dee1ff78da4f31329e5210c71707cfe387308f2f8b72483ce0b57ffc7c
@@ -26,7 +26,7 @@ module Authorio
26
26
 
27
27
  # POST /user/:id/authorize
28
28
  def authorize_user
29
- redirect_to session[:client_id] and return if params[:commit] == 'Cancel'
29
+ redirect_to(session[:client_id], allow_other_host: true) and return if params[:commit] == 'Cancel'
30
30
 
31
31
  @user = authenticate_user_from_session_or_password
32
32
  write_session_cookie(@user) if auth_user_params[:remember_me]
@@ -68,8 +68,8 @@ module Authorio
68
68
  end
69
69
 
70
70
  def oauth_error(error, message = nil, status = :bad_request)
71
- { json: { json: { error: error, error_message: message }.compact },
72
- status: status }
71
+ { json: { json: { error:, error_message: message }.compact },
72
+ status: }
73
73
  end
74
74
 
75
75
  def token_expired
@@ -95,7 +95,7 @@ module Authorio
95
95
 
96
96
  def redirect_to_client
97
97
  redirect_params = { code: @auth_req.code, state: session[:state] }
98
- redirect_to "#{@auth_req.redirect_uri}?#{redirect_params.to_query}"
98
+ redirect_to "#{@auth_req.redirect_uri}?#{redirect_params.to_query}", allow_other_host: true
99
99
  end
100
100
 
101
101
  def authenticate_user_from_session_or_password
@@ -43,7 +43,7 @@ module Authorio
43
43
  end
44
44
 
45
45
  def sweep_requests
46
- Request.where(client: client, authorio_user: authorio_user).destroy_all
46
+ Request.where(client:, authorio_user:).destroy_all
47
47
  end
48
48
 
49
49
  USER_SCOPE_DESCRIPTION = {
@@ -11,7 +11,7 @@ module Authorio
11
11
  end
12
12
 
13
13
  initializer 'authorio.assets.precompile' do |app|
14
- app.config.assets.precompile += %w[authorio/auth.css authorio/application.css]
14
+ app.config.assets.precompile << ['authorio/application.css', 'authorio/auth.css']
15
15
  end
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Authorio
4
- VERSION = '0.8.5'
4
+ VERSION = '0.8.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authorio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Meckler
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-10 00:00:00.000000000 Z
11
+ date: 2022-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.3
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 6.1.3.2
19
+ version: '7.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 6.1.3
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 6.1.3.2
26
+ version: '7.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bcrypt
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -167,29 +161,29 @@ files:
167
161
  - lib/generators/authorio/install/install_generator.rb
168
162
  - lib/generators/authorio/install/templates/authorio.rb
169
163
  - lib/tasks/authorio_tasks.rake
170
- homepage:
164
+ homepage: https://blog.reiterate.app/tag/authorio/
171
165
  licenses:
172
166
  - MIT
173
167
  metadata:
174
168
  source_code_uri: https://github.com/reiterate-app/authorio
175
169
  changelog_uri: https://github.com/reiterate-app/authorio/blob/master/CHANGELOG.md
176
- post_install_message:
170
+ post_install_message:
177
171
  rdoc_options: []
178
172
  require_paths:
179
173
  - lib
180
174
  required_ruby_version: !ruby/object:Gem::Requirement
181
175
  requirements:
182
- - - ">="
176
+ - - "~>"
183
177
  - !ruby/object:Gem::Version
184
- version: '0'
178
+ version: '3.0'
185
179
  required_rubygems_version: !ruby/object:Gem::Requirement
186
180
  requirements:
187
181
  - - ">="
188
182
  - !ruby/object:Gem::Version
189
183
  version: '0'
190
184
  requirements: []
191
- rubygems_version: 3.1.6
192
- signing_key:
185
+ rubygems_version: 3.3.10
186
+ signing_key:
193
187
  specification_version: 4
194
188
  summary: Indieauth Authentication endpoint for Rails
195
189
  test_files: []