discourse_subscription_client 0.1.0.pre14 → 0.1.0.pre15

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: 07afbdfba495c751b1a4f98c5ab657e5f0e044613e525ed806a438a97d41e994
4
- data.tar.gz: 790e0abe8336eeb2f53eeb0f49a975d0f2a5a9054b6bc56bee6435d76474c563
3
+ metadata.gz: f15b1e42f02b3159c039b28fdf1985170db6defce594f2e42c1a52f4504db3ee
4
+ data.tar.gz: 201f6f0740e215e96a288a48ac2438c501ecb451afd968873981879afb433927
5
5
  SHA512:
6
- metadata.gz: 4d63f530f372e9fe425ca8584ed89b64ae2b95815ee61de495c2b77946b6e379ade75705bb225d6f89433f9ea0fbcd6f643c67dec0f3f7f6f593f23d97aaed6c
7
- data.tar.gz: 9875787a8a6de21f0fe8d9482f82cd3045dd73a9394e2d6d2ba6d2b3892d569162628b2eed2e5974200aab3ea6e3c9833a00e1f91c9042d643267d1b59d3df22
6
+ metadata.gz: a90ed84465ac74a22c7640e620376378a0e0323511eb6461dc6646c824f430f679d79c56ee89937c073fb601d41cb2335cfa5370543da641bce0c91fdcc33463
7
+ data.tar.gz: 2400cd36dbb04f1b0c915e3f6f6011115be55bdbc55b3035874ef6584514463b9694de7f73c26fe688417cc6fb39aaae64f9df4d5457e32f87b586f0802ecda7
@@ -11,6 +11,8 @@ module DiscourseSubscriptionClient
11
11
  end
12
12
 
13
13
  def authorize
14
+ session[:final_landing_path] = params[:final_landing_path]
15
+
14
16
  request_id = DiscourseSubscriptionClient::Authorization.request_id(@supplier.id)
15
17
  cookies[:user_api_request_id] = request_id
16
18
  redirect_to DiscourseSubscriptionClient::Authorization.url(current_user, @supplier, request_id).to_s,
@@ -36,7 +38,11 @@ module DiscourseSubscriptionClient
36
38
 
37
39
  DiscourseSubscriptionClient::Subscriptions.update
38
40
 
39
- redirect_to "/admin/plugins/subscription-client/subscriptions"
41
+ if !session[:final_landing_path].blank?
42
+ redirect_to session[:final_landing_path]
43
+ else
44
+ redirect_to "/admin/plugins"
45
+ end
40
46
  end
41
47
 
42
48
  def destroy
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscourseSubscriptionClient
4
- VERSION = "0.1.0.pre14"
4
+ VERSION = "0.1.0.pre15"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_subscription_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre14
4
+ version: 0.1.0.pre15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angus McLeod
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-05 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers