atproto_auth 0.1.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/examples/confidential_client/Gemfile.lock +1 -1
- data/lib/atproto_auth/client.rb +2 -1
- data/lib/atproto_auth/dpop/proof_generator.rb +1 -1
- data/lib/atproto_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5a970c60c05fb183389ef64b1fbd38bfdfc1e2cda615189e0c0e74362f6097
|
4
|
+
data.tar.gz: a841c5f2eebcb6aaf093566e2abda9d0e53cd2e298d0ce20d308e96aa51bdbbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 663b4810b6e888ac345a2d3a67eb8d506a2bd41257c318a7d61978172078a69b1b084f13fee6d0a42f0c982b85c46922a6c4b2b8134f8a84d88b07a36a6ce697
|
7
|
+
data.tar.gz: 0e3c7cd954d9a8a7803c2aba41f12d45d3ecf877b7c130ee732f844d75cb352fabb9bf88173006610962604eff8752baf966939be5aa0263d09e808a97b35328
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.2.1] - 2024-12-11
|
8
|
+
### Fixed
|
9
|
+
- Fixed a bug with access token hash generation
|
10
|
+
|
11
|
+
## [0.2.0] - 2024-12-10
|
12
|
+
### Added
|
13
|
+
- Client#handle_callback now returns session did as part of the response
|
14
|
+
|
7
15
|
## [0.1.0] - 2024-12-07
|
8
16
|
|
9
17
|
### Added
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-blue.svg)](https://github.com/rubocop/rubocop)
|
5
5
|
[![Documentation](https://img.shields.io/badge/docs-rdoc-blue.svg)](https://www.rubydoc.info/gems/atproto_auth)
|
6
6
|
|
7
|
-
A Ruby implementation of the [AT Protocol OAuth specification](https://
|
7
|
+
A Ruby implementation of the [AT Protocol OAuth specification](https://atproto.com/specs/oauth). This library provides support for both client and server-side implementations, with built-in security features including [DPoP](https://datatracker.ietf.org/doc/html/rfc9449), [PAR](https://datatracker.ietf.org/doc/html/rfc9126), and dynamic client registration.
|
8
8
|
|
9
9
|
## Features
|
10
10
|
|
data/lib/atproto_auth/client.rb
CHANGED
@@ -137,7 +137,8 @@ module AtprotoAuth
|
|
137
137
|
expires_in: (token_set.expires_at - Time.now).to_i,
|
138
138
|
refresh_token: token_set.refresh_token,
|
139
139
|
scope: token_set.scope,
|
140
|
-
session_id: session.session_id
|
140
|
+
session_id: session.session_id,
|
141
|
+
did: session.did
|
141
142
|
}
|
142
143
|
end
|
143
144
|
end
|
@@ -99,7 +99,7 @@ module AtprotoAuth
|
|
99
99
|
|
100
100
|
def generate_access_token_hash(access_token)
|
101
101
|
digest = OpenSSL::Digest::SHA256.digest(access_token)
|
102
|
-
Base64.urlsafe_encode64(digest
|
102
|
+
Base64.urlsafe_encode64(digest, padding: false)
|
103
103
|
end
|
104
104
|
|
105
105
|
def encode_jwt_segments(header, payload)
|
data/lib/atproto_auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atproto_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Huckabee
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jose
|