rodauth-oauth 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a33a9ee71a918fe0ea7e71e63062d9399117081bd6d065e5d00dcd4d73ffe8a3
4
- data.tar.gz: b269c68bb2a1eb45bba20ce222b18184d5e64d83ce3ccba1641403e01d2a2c28
3
+ metadata.gz: 99a936bfd8b23b07d5f7611c86d2098573bc83e8d9eb2dbf0531936385bc5e29
4
+ data.tar.gz: 9fb05d801cda3f35e9a9a4326933d98c6ea20c304e80be014b0ade2d1009bf03
5
5
  SHA512:
6
- metadata.gz: 74221c277a9f55e01447063cbc9f8f0d01bb3b77bedbcb86b7b14ab6baeb50d09cbb556c9e54cf14a50d91460a427a9eaaa1a541f4f2e0e87edd724df28703e8
7
- data.tar.gz: 3fcfe3de3b11791ceea035142344f7bbf88a05082452c77b17c4c6fdfc872b956d44f9d04307e61b476b38b340ee7fc68bd27da3698e402b3b7d75628d7c0008
6
+ metadata.gz: fcfa0988b7fe51d1455073913591850df119e98a7e38296c1b43bf509e9f6279094a538d13eb751d7e8ff3eac85d15678ecd7aa883c2c452818f13e13a9630e3
7
+ data.tar.gz: e311c4bb35bfe6f131dbf0c79e7d0f9cb4d75fa5ba0d709c13fcdce7875c807553c5d46020300362952f576980034667dc7c97d27ed5bf4f7540d0874728b5f0
@@ -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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rodauth
4
4
  module OAuth
5
- VERSION = "1.6.2"
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodauth-oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
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-06-17 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -91,6 +91,7 @@ extra_rdoc_files:
91
91
  - doc/release_notes/1_6_0.md
92
92
  - doc/release_notes/1_6_1.md
93
93
  - doc/release_notes/1_6_2.md
94
+ - doc/release_notes/1_6_3.md
94
95
  files:
95
96
  - CHANGELOG.md
96
97
  - LICENSE.txt
@@ -139,6 +140,7 @@ files:
139
140
  - doc/release_notes/1_6_0.md
140
141
  - doc/release_notes/1_6_1.md
141
142
  - doc/release_notes/1_6_2.md
143
+ - doc/release_notes/1_6_3.md
142
144
  - lib/generators/rodauth/oauth/install_generator.rb
143
145
  - lib/generators/rodauth/oauth/templates/app/models/oauth_application.rb
144
146
  - lib/generators/rodauth/oauth/templates/app/models/oauth_grant.rb