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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +2 -2
- data/lib/foobara/auth_http.rb +1 -1
- data/src/foobara/auth_http/clear_access_token_header.rb +1 -1
- data/src/foobara/auth_http/move_access_token_to_header.rb +1 -1
- data/src/foobara/auth_http/set_user_to_authenticated_user.rb +1 -0
- metadata +21 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b560d7ee6971787591dc89f1633fbf2e7a94342201e8a9dcf0e64590decc28bb
|
|
4
|
+
data.tar.gz: 4c7ea4a062a2e58e332fba9a83d300cbb47000db2f3e0566704a8bd5329c9895
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
data/lib/foobara/auth_http.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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: []
|