foobara-auth-http 0.0.5 → 0.0.6

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: cbfea7ac24ee81f38312b0569398d94e7e7e495f27a590a85414c9ae901201ff
4
- data.tar.gz: 297a61914942f1eb40a8a2ee7d1b690832c03f038cf2d52da4b37720fefd036c
3
+ metadata.gz: 5093178b0ce509c5c5f10981172ae99ad1a1d408a73f1e0fa769e0b07bc2a473
4
+ data.tar.gz: 421cff756cbc533133f3c110298812a372a982c1823c8301b01d7b2370024e4c
5
5
  SHA512:
6
- metadata.gz: 07d8f23b097eb0958c41eee9645e82b8159356346a2a5df24e2d9ebdcb395f05eb76845c3baf0c69b14698f715e7decea5b1160eb28821d0475a1eaf9f13063b
7
- data.tar.gz: db85cad0a02231617e84105efba347640aca0d8ce55b1a808255f6561b284164dede262d9fe6717b55da3d736b5f8ff577e7cf74c44c23897d3ae713873d0eed
6
+ metadata.gz: 75e938c0c285d39e48972550a798c5c8e03feb0d60952e2dcf1f19796dfcde8af1fe6124ef9e3eb574be516233a0a42ab6ca6c037eb5896f08d88dbf7b987882
7
+ data.tar.gz: a972502fec1238be95c6a0f1e2b517b421d81d7843aa2a43c50119591db49581662d160908b3fefe9bce60519537a0681514861eb006ce7087e4bf2037e01f87
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.6] - 2025-05-01
2
+
3
+ - Add SetUserToAuthenticatedUser request mutator
4
+
1
5
  ## [0.0.5] - 2025-05-01
2
6
 
3
7
  - Add an ApiKeyAuthenticator
@@ -0,0 +1,19 @@
1
+ module Foobara
2
+ module AuthHttp
3
+ class SetUserToAuthenticatedUser < Foobara::CommandConnectors::Http::SetInputToProcResult
4
+ # TODO: move this into base class as default?
5
+ class << self
6
+ def requires_declaration_data?
7
+ false
8
+ end
9
+ end
10
+
11
+ def initialize
12
+ self.attribute_name = :user
13
+ self.input_value_proc = proc { command.authenticated_user }
14
+
15
+ super
16
+ end
17
+ end
18
+ end
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-auth-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -69,6 +69,7 @@ files:
69
69
  - src/foobara/auth_http/move_access_token_to_header.rb
70
70
  - src/foobara/auth_http/move_refresh_token_to_cookie.rb
71
71
  - src/foobara/auth_http/set_refresh_token_from_cookie.rb
72
+ - src/foobara/auth_http/set_user_to_authenticated_user.rb
72
73
  homepage: https://github.com/foobara/auth-http
73
74
  licenses:
74
75
  - Apache-2.0 OR MIT