publishing_platform_sso 0.2.1 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d0997b4ba60d3c32ad03710a268999d67def500d23c1ca4cb9d9d06e1cb3529
4
- data.tar.gz: f4f46270119c8482d4aa9b3389e3899b96088657097f57d8af2052e5f32a0d1b
3
+ metadata.gz: e2cddff2f7bae3316381a36ba7fe8ff3c85fbc0564974da9a027236b53a10231
4
+ data.tar.gz: 6236ee9276d13f4e9f8dc0db85afff77076d76eaa1bc1c71cf95c0f8e8962085
5
5
  SHA512:
6
- metadata.gz: 1b0262de6a24093b20c261507f27dcb79c2793ea800655f4b0b4247621d72ef751516e88be0a70f0ff2a0c33aef4462e3b9d7d666e8fd3c60c794a1ab0c5f8ae
7
- data.tar.gz: 94b5961cab7aa239c98f9edec585da99b4a9ef2c0e144380f77937f58f44600b4c7168ba49c4033fbb15d2babeb0cbefd9c4b6bd6717dc29fd900c1fab492ea4
6
+ metadata.gz: a3e4e2ffb09f72ecb477f756ac9f3e9bdcf632d1e96aab548f896c70aacbd0cd8ca770ce416c4e9835a3d36b70150f3e3fd430904453aadbb625350d295adf39
7
+ data.tar.gz: 4340d211877b42360641492bd1f20e9fa96c94896284f6e345e7074c1032876e4e8d4105d7acef77a18bd0a4c50fe885fce765f4172497c32b3ed10e4269740f
@@ -1,4 +1,5 @@
1
1
  require "active_support/cache/null_store"
2
+ require "publishing_platform_location"
2
3
 
3
4
  module PublishingPlatform
4
5
  module SSO
@@ -19,7 +20,7 @@ module PublishingPlatform
19
20
 
20
21
  # Location of the OAuth server
21
22
  mattr_accessor :oauth_root_url
22
- @@oauth_root_url = "http://signon.dev.publishing-platform.co.uk" # Plek.new.external_url_for("signon") # TODO: need to implement this functionality
23
+ @@oauth_root_url = PublishingPlatformLocation.find("signon")
23
24
 
24
25
  mattr_accessor :auth_valid_for
25
26
  @@auth_valid_for = 20 * 3600
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PublishingPlatform
4
4
  module SSO
5
- VERSION = "0.2.1"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publishing_platform_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Publishing Platform
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-31 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: publishing_platform_location
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: oauth2
15
29
  requirement: !ruby/object:Gem::Requirement