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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6c3f9dbc4dcbd3639626e34ed21a624b89c952e53a76e09a364665860af2460
4
- data.tar.gz: c3fa0024cfd14e9f5c91f1f91729e376aeaf7eef5e2dd6e7d6cfef28eb553c25
3
+ metadata.gz: 99a936bfd8b23b07d5f7611c86d2098573bc83e8d9eb2dbf0531936385bc5e29
4
+ data.tar.gz: 9fb05d801cda3f35e9a9a4326933d98c6ea20c304e80be014b0ade2d1009bf03
5
5
  SHA512:
6
- metadata.gz: 0d85b01de165f5daf55cf278045e88cb90b7bda144b565384e98d56e18c45f759bb9455914e39f6f33034ce4517d9c526b32820b1b4a5468c344b7f0ff295490
7
- data.tar.gz: 64678467af584d06240570bdd88cc35d191770d8b6bdae42a9b44300dac80233c7c2e380ac91e0ec00e90dce4f1ea9c847a8597835ecaae1bb1285e3b614790d
6
+ metadata.gz: fcfa0988b7fe51d1455073913591850df119e98a7e38296c1b43bf509e9f6279094a538d13eb751d7e8ff3eac85d15678ecd7aa883c2c452818f13e13a9630e3
7
+ data.tar.gz: e311c4bb35bfe6f131dbf0c79e7d0f9cb4d75fa5ba0d709c13fcdce7875c807553c5d46020300362952f576980034667dc7c97d27ed5bf4f7540d0874728b5f0
@@ -0,0 +1,5 @@
1
+ ### 1.6.2
2
+
3
+ #### Bugfixes
4
+
5
+ * fix oauth_base `supported_response_type?` when `grant_types` column is set in the database, but `response_types` is not.
@@ -0,0 +1,9 @@
1
+ ### 1.6.3
2
+
3
+ #### Improvements
4
+
5
+ * all routes can now be used via rodauth `internal_request` feature.
6
+
7
+ #### Bugfixes
8
+
9
+ * `oauth_application_management` feature: fixed "new oauth application" link to account for for prefix usage.
@@ -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[oauth_applications_grant_types_column]
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
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "rodauth/oauth"
4
- require "logger"
5
4
 
6
5
  module Rodauth
7
6
  Feature.define(:oauth_dpop, :OauthDpop) do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rodauth
4
4
  module OAuth
5
- VERSION = "1.6.1"
5
+ VERSION = "1.6.3"
6
6
  end
7
7
  end
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="/oauth-applications/new">#{rodauth.new_oauth_application_page_title}</a>
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.1
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-05-20 00:00:00.000000000 Z
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.4.10
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.