omniauth-rpi 1.4.0 → 1.4.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: 046a13f18b0d6b5121129f3ec0cf88659d436e24d0cdabc5637ade5a9408c4f2
4
- data.tar.gz: bb10408d0250aa1626d3395a7bf7bbd623257016de74e95dfb627e72c037bb16
3
+ metadata.gz: 0acde99bd71facbc4acea203fe7bcc55108a3d20590014767508e62bc4b94c48
4
+ data.tar.gz: d6399c883ce979b5454cd6e2386d6e55bc9bb55882a225b58e9702ef84264e07
5
5
  SHA512:
6
- metadata.gz: f93f200a4a0fead592af06a75b1c3b475a1458ac8fc9d839855df462c50e0065db1e8fd6bea15e9c1a531f08f409302c6dd3fcfcc3aff45a7ac5555226e3fe77
7
- data.tar.gz: f4a68e290ac2eb698ae52cae050de5b8878e782e741506f5f6f52a5ff9f8194bc39a0501da9fdc4eaa77e6395a0eb0c13d3b18a70fab143c3edb6fbb3a892f85
6
+ metadata.gz: 9faf259dbf1f13018814c48ec9d36ea7a2e0cf5c3dcff1051c46ce96398ed043d1d82cde6d4f102a583db2708ed0a56f891c24a529e6153b6cdb74780bdbee4b
7
+ data.tar.gz: 855c3fb971c7e605f982df173d96aa7fc67c423d54d5a318d012d61a021aac77fc6dac2aaaa116b821a6883a9637bc1fb0a73275c30eeb9bee3b1fe18df7b832
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
+ ## [1.4.1] - 2025-7-17
8
+ ### Changed
9
+ - jwt version constraint relaxed; see https://github.com/RaspberryPiFoundation/omniauth-rpi/pull/19 for context
10
+
7
11
  ## [1.4.0] - 2023-02-13
8
12
  ### Changed
9
13
  - Fixes setting of uid from raw_info using sub (uid was previously blank)
data/README.md CHANGED
@@ -111,6 +111,20 @@ if ENV['BYPASS_OAUTH'].present?
111
111
  end
112
112
  ```
113
113
 
114
+ ## v1 Signup redirects
115
+
116
+ When a client application using Hydra v1 redirects to Pi Accounts / Profile to have a user sign up (either through the default login route with the user then opting to create an account, or through forcing signup (below)), it is necessary to set the `v1_signup` value in the `login_options` param:
117
+
118
+ ```
119
+ POST /auth/rpi?login_options=v1_signup
120
+ ```
121
+
122
+ This ensures that once the `/signup` route has been requested, upon a successful submission of verification code or token to the `/verify` endpoint, the browser is redirected to `/v1/login` so that the remainder of the auth flow can be completed, signing the user in with Hydra and redirecting back to the client application correctly (rather than just dumping the user at their Profile dashboard).
123
+
124
+ **Note:** Whilst Hydra v0 routes are still the default in Pi Accounts / Profile, `?login_options=v1_signup` needs to be set for any login path, regardless of whether `force_signup` is also being set, this is to cover cases where a user clicks a log in link but then at the log in UI clicks the create account link instead of logging in.
125
+
126
+ For the full documentation see: https://digital-docs.rpf-internal.org/docs/codebases/accounts/profile-app/hydra-v1-signup
127
+
114
128
  ## Forcing sign up flow
115
129
 
116
130
  It's possible to force a redirect to the Pi Accounts sign up page (rather than the default log in page) through:
@@ -119,7 +133,9 @@ It's possible to force a redirect to the Pi Accounts sign up page (rather than t
119
133
  POST /auth/rpi?login_options=force_signup
120
134
  ```
121
135
 
122
- For the full documentation see: https://github.com/RaspberryPiFoundation/documentation/blob/main/accounts/force-signup.md
136
+ (multiple options can be comma-separated, eg. `?login_options=v1_signup,force_signup`)
137
+
138
+ For the full documentation see: https://digital-docs.rpf-internal.org/docs/codebases/accounts/profile-app/force-signup
123
139
 
124
140
  ## Testing
125
141
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Rpi
3
- VERSION = '1.4.0'.freeze
3
+ VERSION = '1.4.1'.freeze
4
4
  end
5
5
  end
data/omniauth-rpi.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.bindir = 'bin'
21
21
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
22
 
23
- spec.add_runtime_dependency 'jwt', '~> 2.2.3'
23
+ spec.add_runtime_dependency 'jwt', '~> 2.2'
24
24
  spec.add_runtime_dependency 'omniauth', '~> 2.0'
25
25
  spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.4'
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-rpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raspberry Pi Foundation
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-15 00:00:00.000000000 Z
11
+ date: 2025-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.3
19
+ version: '2.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.3
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -167,7 +167,7 @@ homepage: https://www.raspberrypi.org
167
167
  licenses:
168
168
  - MIT
169
169
  metadata: {}
170
- post_install_message:
170
+ post_install_message:
171
171
  rdoc_options: []
172
172
  require_paths:
173
173
  - lib
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubygems_version: 3.1.4
186
- signing_key:
186
+ signing_key:
187
187
  specification_version: 4
188
188
  summary: Official OmniAuth strategy for Raspberry Pi.
189
189
  test_files: []