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 +4 -4
- data/app/controllers/authorio/auth_controller.rb +4 -4
- data/app/models/authorio/request.rb +1 -1
- data/lib/authorio/engine.rb +1 -1
- data/lib/authorio/version.rb +1 -1
- metadata +11 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f44cb9e20ad1a6c77dcb24da16623276d876ef4ebd0f3e630e3f27d72587646c
|
4
|
+
data.tar.gz: '08ca2eff8c2cb5a77801af0705981220499f58acfefa6f0b103ebda5c5f2eb62'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
72
|
-
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
|
data/lib/authorio/engine.rb
CHANGED
@@ -11,7 +11,7 @@ module Authorio
|
|
11
11
|
end
|
12
12
|
|
13
13
|
initializer 'authorio.assets.precompile' do |app|
|
14
|
-
app.config.assets.precompile
|
14
|
+
app.config.assets.precompile << ['authorio/application.css', 'authorio/auth.css']
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/lib/authorio/version.rb
CHANGED
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.
|
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:
|
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:
|
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:
|
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.
|
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: []
|