foobara-auth-http 0.0.7 → 0.1.1

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: ef6f90acea12cf50d2ec6660e562f2406a7579a7406607856e80da9fdf22985d
4
- data.tar.gz: 77c991a02c4678dd57a4ef5b5f64dde3ee6a1d90c1c8c73d7586175aa1c78f1a
3
+ metadata.gz: b560d7ee6971787591dc89f1633fbf2e7a94342201e8a9dcf0e64590decc28bb
4
+ data.tar.gz: 4c7ea4a062a2e58e332fba9a83d300cbb47000db2f3e0566704a8bd5329c9895
5
5
  SHA512:
6
- metadata.gz: d9e8467e3af3c8c3ee0e2edce731fa11719148cd855526ad7e1a65579bbdab457c56de77f92ac00e9cbe549ada464a6380e6a0ebb414cc92172b3ed5386c328b
7
- data.tar.gz: d8bd18c51108559e9957a66f3c0953942d692000ff350ed4c3ea54ee86c219c455055518f02cdda13163b5c0d5314990d61acb0adba3d67113a42599d647813e
6
+ metadata.gz: 909ad7cbc1048851904c69aec412fec01980fbfb8eb5978ef699c8820b266c38dbd6110ab188de206baf934258b551131ec64d48de7d03434c59f3db846ec777
7
+ data.tar.gz: 3f6944615986d90e65f5baa943d8f73f016b264b259f729ff0881652ca5fcce7860dc7eac12ac148423c92ebcca2f4ce30c451cdaaef0cb90deb944254490925
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.1.1] - 2026-01-27
2
+
3
+ - Use lower-case header keys to appease Rack::Lint
4
+
5
+ ## [0.1.0] - 2025-08-22
6
+
7
+ - Mark as compatible with Foobara 0.1.0
8
+
1
9
  ## [0.0.7] - 2025-05-03
2
10
 
3
11
  - Expose relevant entity classes from authenticators for better transaction automation
data/README.md CHANGED
@@ -75,13 +75,13 @@ A rundown of everything happening here:
75
75
  * We are declaring that we want to authenticate using bearer tokens. These are JWT tokens in an
76
76
  `Authorization: Bearer <token>` header.
77
77
  * We are declaring that when we login or refresh our login, we would like to move the new access token
78
- from the result to an X-Access-Token header, and we would like
78
+ from the result to an x-access-token header, and we would like
79
79
  to move the new refresh token from the result to a secure http only cookie.
80
80
  * We are declaring that when we want to refresh our login, we want to move the refresh token from the
81
81
  headers to an input to RefreshLogin.
82
82
  * Logout could technically be handled by the client but for convenience/added safety, we expose
83
83
  Logout and move the refresh token to its inputs so that it can invalidate the refresh token.
84
- * When we respond from Logout, we set the X-Access-Token header to nil. This is something the client
84
+ * When we respond from Logout, we set the x-access-token header to nil. This is something the client
85
85
  could do but gives an easy way to clobber the client's access token without effort on their end.
86
86
 
87
87
  We also expose a few app commands using our authenticator. This is configured as part of command connectors not
@@ -16,4 +16,4 @@ module Foobara
16
16
  end
17
17
 
18
18
  Foobara::Util.require_directory "#{__dir__}/../../src"
19
- Foobara::Monorepo.project "auth_http", project_path: "#{__dir__}/../../"
19
+ Foobara.project "auth_http", project_path: "#{__dir__}/../../"
@@ -8,7 +8,7 @@ module Foobara
8
8
  end
9
9
  end
10
10
 
11
- def initialize(header_name = "X-Access-Token", header_value = nil)
11
+ def initialize(header_name = "x-access-token", header_value = nil)
12
12
  super()
13
13
 
14
14
  self.header_name = header_name.to_s
@@ -8,7 +8,7 @@ module Foobara
8
8
  end
9
9
  end
10
10
 
11
- def initialize(attribute_name = :access_token, header_name = "X-Access-Token")
11
+ def initialize(attribute_name = :access_token, header_name = "x-access-token")
12
12
  super()
13
13
 
14
14
  self.attribute_name = attribute_name.to_sym
@@ -1,5 +1,6 @@
1
1
  module Foobara
2
2
  module AuthHttp
3
+ # Is this genuinely a generic enough concept to be a class in this project?
3
4
  class SetUserToAuthenticatedUser < Foobara::CommandConnectors::Http::SetInputToProcResult
4
5
  # TODO: move this into base class as default?
5
6
  class << self
metadata CHANGED
@@ -1,56 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-auth-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: foobara
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.0.116
18
+ version: 0.1.1
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: 2.0.0
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
23
- - - "~>"
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 0.1.1
29
+ - - "<"
24
30
  - !ruby/object:Gem::Version
25
- version: 0.0.116
31
+ version: 2.0.0
26
32
  - !ruby/object:Gem::Dependency
27
33
  name: foobara-auth
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
30
- - - "~>"
36
+ - - "<"
31
37
  - !ruby/object:Gem::Version
32
- version: 0.0.1
38
+ version: 2.0.0
33
39
  type: :runtime
34
40
  prerelease: false
35
41
  version_requirements: !ruby/object:Gem::Requirement
36
42
  requirements:
37
- - - "~>"
43
+ - - "<"
38
44
  - !ruby/object:Gem::Version
39
- version: 0.0.1
45
+ version: 2.0.0
40
46
  - !ruby/object:Gem::Dependency
41
47
  name: foobara-http-command-connector
42
48
  requirement: !ruby/object:Gem::Requirement
43
49
  requirements:
44
- - - "~>"
50
+ - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: 0.0.1
52
+ version: 2.0.0
47
53
  type: :runtime
48
54
  prerelease: false
49
55
  version_requirements: !ruby/object:Gem::Requirement
50
56
  requirements:
51
- - - "~>"
57
+ - - "<"
52
58
  - !ruby/object:Gem::Version
53
- version: 0.0.1
59
+ version: 2.0.0
54
60
  email:
55
61
  - azimux@gmail.com
56
62
  executables: []
@@ -92,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
98
  - !ruby/object:Gem::Version
93
99
  version: '0'
94
100
  requirements: []
95
- rubygems_version: 3.6.2
101
+ rubygems_version: 3.6.9
96
102
  specification_version: 4
97
103
  summary: Contains convenience classes/methods for using Foobara::Auth over HTTP
98
104
  test_files: []