rodauth-oauth 1.6.1 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes/1_6_2.md +5 -0
- data/doc/release_notes/1_6_3.md +9 -0
- data/lib/rodauth/features/oauth_base.rb +1 -1
- data/lib/rodauth/features/oauth_dpop.rb +0 -1
- data/lib/rodauth/oauth/version.rb +1 -1
- data/lib/rodauth/oauth.rb +5 -2
- data/templates/oauth_applications.str +1 -1
- metadata +21 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99a936bfd8b23b07d5f7611c86d2098573bc83e8d9eb2dbf0531936385bc5e29
|
4
|
+
data.tar.gz: 9fb05d801cda3f35e9a9a4326933d98c6ea20c304e80be014b0ade2d1009bf03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcfa0988b7fe51d1455073913591850df119e98a7e38296c1b43bf509e9f6279094a538d13eb751d7e8ff3eac85d15678ecd7aa883c2c452818f13e13a9630e3
|
7
|
+
data.tar.gz: e311c4bb35bfe6f131dbf0c79e7d0f9cb4d75fa5ba0d709c13fcdce7875c807553c5d46020300362952f576980034667dc7c97d27ed5bf4f7540d0874728b5f0
|
@@ -720,7 +720,7 @@ module Rodauth
|
|
720
720
|
def supported_response_type?(response_type, expected_response_type = response_type)
|
721
721
|
return false unless response_type == expected_response_type
|
722
722
|
|
723
|
-
response_types_supported = if oauth_application[
|
723
|
+
response_types_supported = if oauth_application[oauth_applications_response_types_column]
|
724
724
|
oauth_application[oauth_applications_response_types_column].split(/ +/)
|
725
725
|
else
|
726
726
|
oauth_response_types_supported
|
data/lib/rodauth/oauth.rb
CHANGED
@@ -6,8 +6,8 @@ require "rodauth/oauth/version"
|
|
6
6
|
module Rodauth
|
7
7
|
module OAuth
|
8
8
|
module FeatureExtensions
|
9
|
-
def auth_server_route(*args, &blk)
|
10
|
-
routes = route(*args, &blk)
|
9
|
+
def auth_server_route(name, *args, &blk)
|
10
|
+
routes = route(name, *args, &blk)
|
11
11
|
|
12
12
|
handle_meth = routes.last
|
13
13
|
|
@@ -19,6 +19,9 @@ module Rodauth
|
|
19
19
|
|
20
20
|
alias_method :"#{handle_meth}_not_for_auth_server", handle_meth
|
21
21
|
alias_method handle_meth, :"#{handle_meth}_for_auth_server"
|
22
|
+
|
23
|
+
# make all requests usable via internal_request feature
|
24
|
+
internal_request_method name
|
22
25
|
end
|
23
26
|
|
24
27
|
# override
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="oauth-applications">
|
2
|
-
<a class="btn btn-outline-primary" href="/
|
2
|
+
<a class="btn btn-outline-primary" href="#{rodauth.oauth_applications_path}/new">#{rodauth.new_oauth_application_page_title}</a>
|
3
3
|
#{
|
4
4
|
if @oauth_applications.count.zero?
|
5
5
|
"<p>#{rodauth.oauth_no_applications_text}</p>"
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rodauth-oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: base64
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rodauth
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,6 +90,8 @@ extra_rdoc_files:
|
|
76
90
|
- doc/release_notes/1_5_0.md
|
77
91
|
- doc/release_notes/1_6_0.md
|
78
92
|
- doc/release_notes/1_6_1.md
|
93
|
+
- doc/release_notes/1_6_2.md
|
94
|
+
- doc/release_notes/1_6_3.md
|
79
95
|
files:
|
80
96
|
- CHANGELOG.md
|
81
97
|
- LICENSE.txt
|
@@ -123,6 +139,8 @@ files:
|
|
123
139
|
- doc/release_notes/1_5_0.md
|
124
140
|
- doc/release_notes/1_6_0.md
|
125
141
|
- doc/release_notes/1_6_1.md
|
142
|
+
- doc/release_notes/1_6_2.md
|
143
|
+
- doc/release_notes/1_6_3.md
|
126
144
|
- lib/generators/rodauth/oauth/install_generator.rb
|
127
145
|
- lib/generators/rodauth/oauth/templates/app/models/oauth_application.rb
|
128
146
|
- lib/generators/rodauth/oauth/templates/app/models/oauth_grant.rb
|
@@ -224,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
242
|
- !ruby/object:Gem::Version
|
225
243
|
version: '0'
|
226
244
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
245
|
+
rubygems_version: 3.5.3
|
228
246
|
signing_key:
|
229
247
|
specification_version: 4
|
230
248
|
summary: Implementation of the OAuth 2.0 protocol on top of rodauth.
|