rodauth-oauth 0.7.2 → 0.8.0

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -407
  3. data/README.md +26 -389
  4. data/doc/release_notes/0_0_1.md +3 -0
  5. data/doc/release_notes/0_0_2.md +15 -0
  6. data/doc/release_notes/0_0_3.md +31 -0
  7. data/doc/release_notes/0_0_4.md +36 -0
  8. data/doc/release_notes/0_0_5.md +36 -0
  9. data/doc/release_notes/0_0_6.md +21 -0
  10. data/doc/release_notes/0_1_0.md +44 -0
  11. data/doc/release_notes/0_2_0.md +43 -0
  12. data/doc/release_notes/0_3_0.md +28 -0
  13. data/doc/release_notes/0_4_0.md +18 -0
  14. data/doc/release_notes/0_4_1.md +9 -0
  15. data/doc/release_notes/0_4_2.md +5 -0
  16. data/doc/release_notes/0_4_3.md +3 -0
  17. data/doc/release_notes/0_5_0.md +11 -0
  18. data/doc/release_notes/0_5_1.md +13 -0
  19. data/doc/release_notes/0_6_0.md +9 -0
  20. data/doc/release_notes/0_6_1.md +6 -0
  21. data/doc/release_notes/0_7_0.md +20 -0
  22. data/doc/release_notes/0_7_1.md +10 -0
  23. data/doc/release_notes/0_7_2.md +21 -0
  24. data/doc/release_notes/0_7_3.md +10 -0
  25. data/doc/release_notes/0_7_4.md +5 -0
  26. data/doc/release_notes/0_8_0.md +37 -0
  27. data/lib/generators/rodauth/oauth/install_generator.rb +1 -1
  28. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/authorize.html.erb +29 -0
  29. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/device_search.html.erb +11 -0
  30. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb +20 -0
  31. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/new_oauth_application.html.erb +50 -0
  32. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/oauth_application.html.erb +23 -0
  33. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/oauth_application_oauth_tokens.html.erb +38 -0
  34. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/oauth_applications.html.erb +29 -0
  35. data/lib/generators/rodauth/oauth/templates/app/views/rodauth/oauth_tokens.html.erb +34 -0
  36. data/lib/generators/rodauth/oauth/templates/db/migrate/create_rodauth_oauth.rb +9 -1
  37. data/lib/generators/rodauth/oauth/views_generator.rb +9 -4
  38. data/lib/rodauth/features/oauth.rb +3 -1418
  39. data/lib/rodauth/features/oauth_application_management.rb +209 -0
  40. data/lib/rodauth/features/oauth_assertion_base.rb +96 -0
  41. data/lib/rodauth/features/oauth_authorization_code_grant.rb +249 -0
  42. data/lib/rodauth/features/oauth_authorization_server.rb +0 -0
  43. data/lib/rodauth/features/oauth_base.rb +735 -0
  44. data/lib/rodauth/features/oauth_device_grant.rb +221 -0
  45. data/lib/rodauth/features/oauth_http_mac.rb +3 -21
  46. data/lib/rodauth/features/oauth_implicit_grant.rb +59 -0
  47. data/lib/rodauth/features/oauth_jwt.rb +37 -60
  48. data/lib/rodauth/features/oauth_jwt_bearer_grant.rb +59 -0
  49. data/lib/rodauth/features/oauth_pkce.rb +98 -0
  50. data/lib/rodauth/features/oauth_resource_server.rb +21 -0
  51. data/lib/rodauth/features/oauth_saml_bearer_grant.rb +102 -0
  52. data/lib/rodauth/features/oauth_token_introspection.rb +108 -0
  53. data/lib/rodauth/features/oauth_token_management.rb +77 -0
  54. data/lib/rodauth/features/oauth_token_revocation.rb +109 -0
  55. data/lib/rodauth/features/oidc.rb +4 -3
  56. data/lib/rodauth/oauth/database_extensions.rb +15 -2
  57. data/lib/rodauth/oauth/refinements.rb +48 -0
  58. data/lib/rodauth/oauth/version.rb +1 -1
  59. data/locales/en.yml +28 -12
  60. data/templates/authorize.str +7 -7
  61. data/templates/client_secret_field.str +2 -2
  62. data/templates/description_field.str +1 -1
  63. data/templates/device_search.str +11 -0
  64. data/templates/device_verification.str +24 -0
  65. data/templates/homepage_url_field.str +2 -2
  66. data/templates/jws_jwk_field.str +4 -0
  67. data/templates/jwt_public_key_field.str +4 -0
  68. data/templates/name_field.str +1 -1
  69. data/templates/new_oauth_application.str +9 -0
  70. data/templates/oauth_application.str +7 -3
  71. data/templates/oauth_application_oauth_tokens.str +51 -0
  72. data/templates/oauth_applications.str +2 -2
  73. data/templates/oauth_tokens.str +9 -11
  74. data/templates/redirect_uri_field.str +2 -2
  75. metadata +97 -7
  76. data/lib/rodauth/features/oauth_saml.rb +0 -104
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d000e6a25796dbdc8c58d378e93819343810f6089c33d02732443342ce721ec3
4
- data.tar.gz: e61c19bd7e74c3f2b68541bf7aa78c143c669d5a745bf4efc389e786598fbcd8
3
+ metadata.gz: 7381dc47a766e5ff725d77331e045bbd97e09bff282d7b9b9d7b176011c87fa3
4
+ data.tar.gz: 0c8562b520431858d3ad9b88e311087ad98747eaeb473d16286a061e8a9d84b9
5
5
  SHA512:
6
- metadata.gz: 9d727127c9e5a6d3a935b6194fbd0bd81358f3ea9876387d1639c3cf419b15246a0b89d57688d8ef15e830bd7b86f482463332c0fa843cb494ee56afe23c3e2e
7
- data.tar.gz: 1d565e48e99b4897ca47a64c5b937405a5a10a9696893059d59670e58ae0dc1677daf17194ddfefcdd0d9fc33960ab5fd3a1fd3716cbe0e7fae961537ad46058
6
+ metadata.gz: 82d32250cadc973d9cb0618b6654ad783ac77529d2000f6d24b1759ec4d3d39f4764e64a3ac3c0e72b752f47e35331489e7feba6060f1239049954f004c7485e
7
+ data.tar.gz: c9bb9d578f40d924e4c2bad34840257f9de5a38e9d0cf427bf5d63ca1f672e0cbfeeffb8d513e0210e17a9060bb871c328e8ab88d64de334c54ca29bc3ff338f
data/CHANGELOG.md CHANGED
@@ -1,407 +1 @@
1
- # CHANGELOG
2
-
3
- ## master
4
-
5
- ### 0.7.2 (14/12/2021)
6
-
7
- #### Features
8
-
9
- * Revoking tokens from the OAuth Application management interface (@muellerj)
10
-
11
- Token revocation was only possible when using the client ID and Secret, to aid "logout" functionality from client applications. Although the admin interface (available via `r.oauth_applications`) displayed a "Revoke" button alongside tokens in the list page, this was not working. The RFC does allow for the use case of application administrators being able to manually revoke tokens (as a result of client support, for example), so this functionality was enabled (only for the oauth application owner, for now).
12
-
13
- #### Bugfixes
14
-
15
- Default scope usage related bugfixes:
16
-
17
- * Improved default scope conversion to avoid nested arrays (@muellerj);
18
- * Authorize form shows a disabled checkbox and POST's no scope when default scope is to be used (@muellerj);
19
- * example default scope fixed for example authorization server (should be string) (@muellerj);
20
- * several param fixes in view templates (@muellerj);
21
-
22
- OAuth Applications Management fixes:
23
-
24
- * Access to OAuth Application page is now restricted to app owner;
25
- * OAuth Applications page now lists the **only** the applications owned by the logged in user;
26
-
27
- ### 0.7.1 (05/12/2021)
28
-
29
- #### Improvements
30
-
31
- * Adapted the `rodauth-i18n` configuration to comply with the guidelines for `v0.2.0` (which is the defacto minimmal supported version).
32
-
33
- #### Bugfixes
34
-
35
- * `convert_timestamp` was removed from the templates, as it's private API.
36
- * Several missing or wrong URLs in templates fixed (authorize form was wrongly processing scopes when none was selected).
37
-
38
- ### 0.7.0 (02/12/2021)
39
-
40
- #### Features
41
-
42
- * Internationalization (i18n) support by hooking on [rodauth-i18n](https://github.com/janko/rodauth-i18n).
43
- * Sets all text using `translatable_method`.
44
- * Provides english translations for all `rodauth-oauth` related user facing text.
45
-
46
- #### Improvements
47
-
48
- * Enable CORS requests for OpenID configuration endpoint (@ianks)
49
- * Introspect endpoint now exposes the `exp` token property (@gmanley)
50
-
51
- #### Bugfixes
52
-
53
- * on rotation policy, although the first refresh token was invalidated, a new one wasn't being provided. This change allows a new refresh token to be generated and exposed in the response (@gmanley)
54
-
55
- #### Chore
56
-
57
- Setting `rodauth` minimal supported version to `2.0.0`.
58
-
59
- ### 0.6.1 (08/09/2021)
60
-
61
- #### Bugfixes
62
-
63
- * Fixed rails view templates escaping.
64
- * Fixed declaration of authorize template in the generator.
65
-
66
- ### 0.6.0 (21/05/2021)
67
-
68
- ### Improvements
69
-
70
- * RBS signatures
71
-
72
- ### Chore
73
-
74
- * Ruby 3 and Truffleruby are now officially supported and tested in CI.
75
-
76
- ### 0.5.1 (19/03/2021)
77
-
78
- #### Improvements
79
-
80
- * Changing "Callback URL" to "Redirect URL" in default templates;
81
-
82
- #### Bugfixes
83
-
84
- * (rails integration) Fixed templates location;
85
- * (rails integration) Fixed migration name from generator;
86
- * (rails integration) fixed links, html tags, styling and unassigned variables from a few view templates;
87
- * `oauth_application_path` is now compliant with prefixes and other url helpers, while now having a `oauth_application_url` counterpart;
88
- * (rails integration) skipping csrf checks for "/userinfo" request (OIDC)
89
-
90
- ### 0.5.0 (08/02/2021)
91
-
92
- #### RP-Initiated Logout
93
-
94
- The `:oidc` plugin can now do [RP-Initiated Logout](https://gitlab.com/honeyryderchuck/rodauth-oauth/-/wikis/RP-Initiated-Logout). It's disabled by default, so read the docs to learn how to enable it.
95
-
96
- #### Security
97
-
98
- The `:oauth_jwt` (and by association, `:oidc`) plugin(s) verifies the claims of used JWT tokens. This is a **very important security fix**, as without it, there is no protection against replay attacks and other types of misuse of the JWT token.
99
-
100
- A new auth method, `generate_jti(claims)`, was [added to the list of oauth_jwt plugin options](https://gitlab.com/honeyryderchuck/rodauth-oauth/-/wikis/JWT-Access-Tokens#rodauth-options). By default, it'll hash the `aud` and `iat` claims together, but you can overwrite how this is done.
101
-
102
- ### 0.4.3 (09/12/2020)
103
-
104
- * Introspection requests made to an Authorization Server in "resource server" mode are not correctly encoding the body using the "application/x-www-form-urlencoded" format.
105
-
106
- ### 0.4.2 (24/11/2020)
107
-
108
- #### Bugfixes
109
-
110
- * database extensions were being run in resource server mode, when it's not expected that the oauth db tables are around.
111
-
112
- ### 0.4.1 (24/11/2020)
113
-
114
- #### Improvements
115
-
116
- When in "Resource Server" mode, calling `rodauth.authorization_token` will now return an hash of the JSON payload that the Authorization Server responds, and which was already previously used to authorize access to protected resources.
117
-
118
- #### Bugfixes
119
-
120
- * An error occurred if the client passed an empty authorization header (`Authorization: ` or `Authorization: Bearer `), causing an unexpected error; It now responds with the proper `401 Unauthorized` status code.
121
-
122
- ### 0.4.0 (13/11/2020)
123
-
124
- #### Features
125
-
126
- * A new method, `get_additional_param(account, claim)`, is now exposed; this method will be called whenever non-OIDC scopes are requested in the emission of the ID token.
127
-
128
- * The `form_post` response is now supported, either by passing the `response_mode=form_post` request param in the authorization URL, or by setting `oauth_response_mode "form_post"` option. This improves the overall security of an Authorization server even more, as authorization codes are sent to client applications via a POST request to the redirect URI.
129
-
130
-
131
- #### Improvements
132
-
133
- * For the OIDC `address` scope, proper claims are now emitted as per the standard, i.e. the "formatted", "street_address", "locality", "region", "postal_code", "country". These will be the ones referenced in the `get_oidc_param` method.
134
-
135
- #### Bugfixes
136
-
137
- * The rails templates were missing declarations from a few params, which made some of the flows (the PKCE for example) not work out-of-the box;
138
- * rails tests were silently not running in CI;
139
- * The CI suite was revamped, so that all Oauth tests would be run under rails as well. All versions from rails equal or above 5.0 are now targeted;
140
-
141
- ### 0.3.0 (8/10/2020)
142
-
143
- #### Features
144
-
145
- * `oauth_refresh_token_protection_policy` is a new option, which can be used to set a protection policy around usage of refresh tokens. By default it's `none`, for backwards-compatibility. However, when set to `rotation`, refresh tokens will be "use-once", i.e. a token refresh request will generate a new refresh token. Also, refresh token requests performed with already-used refresh tokens will be interpreted as a security breach, i.e. all tokens linked to the compromised refresh token will be revoked.
146
-
147
- #### Improvements
148
-
149
-
150
- * Support for the OIDC authorize [`prompt` parameter](https://openid.net/specs/openid-connect-core-1_0.html) (sectionn 3.1.2.1). It supports the `none`, `login` and `consent` out-of-the-box, while providing support for `select-account` when paired with [rodauth-select-account, a rodauth feature to handle multiple accounts in the same session](https://gitlab.com/honeyryderchuck/rodauth-select-account).
151
-
152
- * Refresh Tokens are now expirable. The refresh token expiration period is governed by the `oauth_refresh_token_expires_in` option (default: 1 year), and is the period for which a refresh token can be used after its respective access token expired.
153
-
154
- #### Bugfixes
155
-
156
- * Default Templates now being packaged, as a way to provide a default experience to the OAuth journeys.
157
-
158
- * fixing metadata urls when plugin loaded with a prefix path (@ianks)
159
-
160
- * All date/time-based calculations, such as determining an expiration date, or checking if a token has expired, are now performed using database arithmetic operations, using sequel's `date_arithmetic` plugin. This will eliminate subtle bugs, such as when the database timezone is different than the application OS timezone.
161
-
162
- * OIDC configuration endpoint is now stricter, eliminating JSON metadata inherited from the Oauth metadata endpoint. (@ianks)
163
-
164
- #### Chore
165
-
166
- Use `rodauth.convert_timestamp` in the templates, whenever dates are displayed.
167
-
168
- Set HTTP Cache headers for metadata responses, such as `/.well-known/oauth-authorization-server` and `/.well-known/openid-configuration`, so they can be stored at the edge. The cache will be valid for 1 day (this value isn't set by an option yet).
169
-
170
- ### 0.2.0 (9/9/2020)
171
-
172
- #### Features
173
-
174
- ##### SAML Assertion Grant Type
175
-
176
- `rodauth-auth` now supports using a SAML Assertion to request for an Access token.In order to enable, you have to:
177
-
178
- ```ruby
179
- plugin :rodauth do
180
- enable :oauth_saml
181
- end
182
- ```
183
-
184
- For more info about integrating it, [check the wiki](https://gitlab.com/honeyryderchuck/rodauth-oauth/-/wikis/SAML-Assertion-Access-Tokens).
185
-
186
- ##### Supporting rotating keys
187
-
188
- At some point, you'll want to replace the pkeys and algorithm used to generate and verify the JWT access tokens, but you want to keep validating previously-distributed JWT tokens, at least until they expire. Now you can, via two new options, `oauth_jwt_legacy_public_key` and `oauth_jwt_legacy_algorithm`, which will be declared in the JWKs URI and used to verify access tokens.
189
-
190
-
191
- ##### Reuse access tokens
192
-
193
- If the `oauth_reuse_access_token` is set, if there's already an existing valid access token, any new grant for the same application / account / scope will keep the same access token. This can be helpful in scenarios where one wants the same access token distributed across devices.
194
-
195
- ##### require_authorizable_account
196
-
197
- The method used to verify access to the authorize flow is called `require_authorizable_account`. By default, it checks if a user is logged in by using rodauth's own `require_account`. This is the method you'd want to redefine in order to augment these requirements, i.e. request 2fa authentication.
198
-
199
- #### Improvements
200
-
201
- Expired and revoked access tokens end up generating a lot of garbage, which will have to be periodically cleaned up. You can mitigate this now by setting a uniqueness index for a group of columns, i.e. if you set a uniqueness index for the `oauth_application_id/account_id/scopes` column, `rodauth-oauth` will transparently reuse the same db entry to store the new access token. If setting some other type of uniqueness index, make sure to update the option `oauth_tokens_unique_columns` (the array of columns from the uniqueness index).
202
-
203
- #### Bugfixes
204
-
205
- Calling `before_*_route` callbacks appropriately.
206
-
207
- Fixed some mishandling of HTTP headers when in in resource-server mode.
208
-
209
- #### Chore
210
-
211
- * 97.7% test coverage;
212
- * `rodauth-oauth` CI tests run against sqlite, postgresql and mysql.
213
-
214
- ### 0.1.0 (31/7/2020)
215
-
216
- #### Features
217
-
218
- ##### OpenID
219
-
220
- `rodauth-oauth` now ships with support for [OpenID Connect](https://openid.net/connect/). In order to enable, you have to:
221
-
222
- ```ruby
223
- plugin :rodauth do
224
- enable :oidc
225
- end
226
- ```
227
-
228
- For more info about integrating it, [check the wiki](https://gitlab.com/honeyryderchuck/rodauth-oauth/-/wikis/home#openid-connect-since-v01).
229
-
230
- It supports omniauth openID integrations out-of-the-box, [check the OpenID example, which integrates with omniauth_openid_connect](https://gitlab.com/honeyryderchuck/rodauth-oauth/-/tree/master/examples).
231
-
232
- #### Improvements
233
-
234
- * JWT: `sub` claim now also handles "pairwise" subjects. For that, you have to set the `oauth_jwt_subject_type` option (`"public"` or `"pairwise"`) and `oauth_jwt_subject_secret` (will be used for salting the `sub` when the type is `"pairwise"`).
235
- * JWT: `auth_time` claim is now supported; if your application uses the `rodauth` feature `:account_expiration`, it'll use the `last_account_login_at` method, otherwise you can set the `last_account_login_at` option:
236
-
237
- ```ruby
238
- last_account_login_at do
239
- convert_timestamp(db[accounts_table].where(account_id_column => account_id).get(:that_column_where_you_keep_the_data))
240
- end
241
- ```
242
- * JWT: `iss` claim now defaults to `authorization_server_url` when not defined;
243
- * JWT: `aud` claim now defaults to the token application's client ID (`client_id` claim was removed as a result);
244
-
245
-
246
-
247
- #### Breaking Changes
248
-
249
- `rodauth-oauth` URLs no longer have the `oauth-` prefix, so make sure you update your integrations accordingly, i.e. where you used to rely on `/oauth-authorize`, you'll have to use `/authorize`.
250
-
251
- URI schemes for client applications redirect URIs have to be `https`. In order to override this, set the `oauth_valid_uri_schemes` to an array of your expected URI schemes.
252
-
253
-
254
- #### Bugfixes
255
-
256
- * Authorization request submission can receive the `scope` as an array of values now, instead of only dealing with receiving a white-space separated list.
257
- * fixed trailing "/" in the "issuer" value in server metadata (`https://server.com/` -> `https://server.com`).
258
-
259
-
260
- ### 0.0.6 (6/7/2020)
261
-
262
- #### Features
263
-
264
- The `oauth_jwt` feature now supports JWT Secured Authorization Request (JAR) (see https://tools.ietf.org/html/draft-ietf-oauth-jwsreq-20). This means that client applications can send the authorization parameters inside a signed JWT. The client applications keeps the private key, while the authorization server **must** store a public key for the client application. For encrypted JWTs, the client application should use one of the public encryption keys exposed in the JWKs URI, to encrypt the JWT. Remember, **tokens must be signed then encrypted** (or just signed).
265
-
266
- ###### Options:
267
-
268
- * `:oauth_application_jws_jwk_column`: db column where the public key is stored; since it's stored in the JWS format, it can be stored either as a String (JSON-encoded), or as an hstore (if you're using postgresql);
269
- * `:oauth_jwt_jwe_key`: key used to decrypt the request JWT;
270
- * `:oauth_jwt_jwe_public_key`: key used to encrypt the request JWT, and which will be exposed in the JWKs URI in the JWK format;
271
-
272
-
273
- #### Improvements
274
-
275
- * Removing all `_param` options; these defined the URL params, however we're using protocol-defined params, so it's unlikely (and undesired) that these'll change.
276
- * Hitting the revoke endpoint with a JWT access token returns a 400 error;
277
-
278
- #### Chore
279
-
280
- Removed React Javascript from example applications.
281
-
282
-
283
- ### 0.0.5 (26/6/2020)
284
-
285
- #### Features
286
-
287
- * new option: `oauth_scope_separator` (default: `" "`), to define how scopes are stored;
288
-
289
- ##### Resource Server mode
290
-
291
- `rodauth-oauth` can now be used in a resource server, i.e. only for authorizing access to resources:
292
-
293
-
294
- ```ruby
295
- plugin :rodauth do
296
- enable :oauth
297
-
298
- is_authorization_server? false
299
- authorization_server_url "https://auth-server"
300
- end
301
- ```
302
-
303
- It **requires** the authorization to implement the server metadata endpoint (`/.well-known/oauth-authorization-server`), and if using JWS, the JWKs URI endpoint (unless `oauth_jwt_public_key` is defined).
304
-
305
- #### Improvements
306
-
307
- * Multiple Redirect URIs are now allowed for client applications out-of-the-box. In order to use it in API mode, you can pass the `redirect_uri` with an array of strings (the URLs) as values; in the new client application form, you can add several input fields with name field as `redirect_uri[]`. **ATTENTION!!** When using multiple redirect URIs, passing the desired redirect URI to the authorize form becomes mandatory.
308
- * store scopes with whitespace instead of comma; set separator as `oauth_scope_separator` option, to keep backwards-compatibility;
309
- * client application can now store multiple redirect uris; the POST API parameters can accept the redirect_uri param value both as a string or an array of string; internally, they'll be stored in a whitespace-separated string;
310
-
311
- #### Bugfixes
312
-
313
- * Fixed `RETURNING` support in the databases supporting it (such as postgres).
314
-
315
- #### Chore
316
-
317
- * option `scopes_param` renamed to `scope_param`;
318
- *
319
-
320
- ## 0.0.4 (13/6/2020)
321
-
322
- ### Features
323
-
324
- #### Token introspection
325
-
326
- `rodauth-oauth` now ships with an introspection endpoint (`/oauth-introspect`).
327
-
328
- #### Authorization Server Metadata
329
-
330
- `rodauth-oauth` now allows to define an authorization metadata endpoint, which has to be defined at the route of the router:
331
-
332
- ```ruby
333
- route do |r|
334
- r.rodauth
335
- rodauth.oauth_server_metadata
336
- ...
337
- ```
338
-
339
- #### JWKs URI
340
-
341
- the `oauth_jwt` feature now ships with an endpoint, `/oauth-jwks`, where client applications can retrieve the JWK set to verify generated tokens.
342
-
343
- #### JWT access tokens as authorization grants
344
-
345
- The `oauth_jwt` feature now allows the usage of access tokens to authorize the generation of new tokens, [as per the RFC](https://tools.ietf.org/html/rfc7523#section-4);
346
-
347
- ### Improvements
348
-
349
- * using `client_secret_basic` authorization where client id/secret params were allowed (i.e. in the token and revoke endpoints, for example);
350
- * improved JWK usage for both supported jwt libraries;
351
- * marked `fetch_access_token` as auth_value_method, thereby allowing users to fetch the access token from other sources than the "Authorization" header (i.e. form body, query params, etc...)
352
-
353
- ### Bugfixes
354
-
355
- * Fixed scope claim of JWT ("scopes" -> "scope");
356
-
357
- ## 0.0.3 (5/6/2020)
358
-
359
- ### Features
360
-
361
- #### `:oauth_http_mac`
362
-
363
- A new feature builds on top of `:oauth` to allow MAC authorization.
364
-
365
- ```ruby
366
- plugin :rodauth do
367
- enable :oauth_http_mac
368
- # options here...
369
- end
370
- ```
371
-
372
- #### `:oauth_jwt`
373
-
374
- Another new feature, this time supporting the generation of JWT access tokens.
375
-
376
- ```ruby
377
- plugin :rodauth do
378
- enable :oauth_jwt
379
- # options here...
380
- end
381
- ```
382
-
383
- ### Improvements
384
-
385
- * added options for disabling pkce and access type (respectively, `use_oauth_pkce?` and `use_oauth_access_type?`);
386
- * renamed the existing `use_oauth_implicit_grant_type` to `use_oauth_implicit_grant_type?`;
387
- * It's now usable as JSON API (small caveat: POST authorize will still redirect on success...);
388
-
389
- ## 0.0.2 (29/5/2020)
390
-
391
- ### Features
392
-
393
- * Implementation of PKCE by OAuth Public Clients (https://tools.ietf.org/html/rfc7636);
394
- * Implementation of grants using "access_type" and "approval_prompt" ([similar to what Google OAuth 2.0 API does](https://wiki.scn.sap.com/wiki/display/Security/Access+Google+APIs+using+the+OAuth+2.0+Client+API));
395
-
396
- ### Improvements
397
-
398
- * Store token/refresh token hashes in the database, instead of the "plain" tokens;
399
- * Client secret hashed by default, and provided by the application owner;
400
-
401
- ### Fix
402
-
403
- * usage of client secret for authorizing the generation of tokens, as the spec mandates (and refraining from them when doing PKCE).
404
-
405
- ## 0.0.1 (14/5/2020)
406
-
407
- Initial implementation of the Oauth 2.0 framework, with an example app done using roda.
1
+ See the Release Notes under https://gitlab.com/honeyryderchuck/rodauth-oauth/-/tree/master/doc/release_notes