atproto_auth 0.2.0 → 0.2.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: 34848fb624a69ebaedbfaa4638d334e5d493ca0329659cb79ddeaaebb32080b3
4
- data.tar.gz: 7daba6d6bcbd6b0bd3042d8001e923c1a389b29d3c70a59e80b45378a979ad12
3
+ metadata.gz: 3b5a970c60c05fb183389ef64b1fbd38bfdfc1e2cda615189e0c0e74362f6097
4
+ data.tar.gz: a841c5f2eebcb6aaf093566e2abda9d0e53cd2e298d0ce20d308e96aa51bdbbf
5
5
  SHA512:
6
- metadata.gz: c2bf779a0a19495712be8bf24a98c6839cfffa875c048826265b7b6159a020c64e3b4b5e99b0ee4b17a0499a6433f364bc2af7c6468c21513577b2e4a43fee84
7
- data.tar.gz: e586a0e6ecf2b3f2df3936ad50b24076da93a64149f118a14abb980735ea58e491aeb2d86df51a398434d4246f37f18ba38e61024776694e2745b62d3524f080
6
+ metadata.gz: 663b4810b6e888ac345a2d3a67eb8d506a2bd41257c318a7d61978172078a69b1b084f13fee6d0a42f0c982b85c46922a6c4b2b8134f8a84d88b07a36a6ce697
7
+ data.tar.gz: 0e3c7cd954d9a8a7803c2aba41f12d45d3ecf877b7c130ee732f844d75cb352fabb9bf88173006610962604eff8752baf966939be5aa0263d09e808a97b35328
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ 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
+
7
11
  ## [0.2.0] - 2024-12-10
8
12
  ### Added
9
13
  - Client#handle_callback now returns session did as part of the response
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- atproto_auth (0.2.0)
4
+ atproto_auth (0.2.1)
5
5
  jose (~> 1.2)
6
6
  jwt (~> 2.9)
7
7
  redis (~> 5.3)
@@ -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[0...(digest.length / 2)], padding: false)
102
+ Base64.urlsafe_encode64(digest, padding: false)
103
103
  end
104
104
 
105
105
  def encode_jwt_segments(header, payload)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AtprotoAuth
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.2.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-10 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jose