oauth_im 0.9.1 → 0.9.2

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: 4c516706747b55e09365f8803351f8a282fa15fc47c7c5dfb0eb8fbd20cea0b5
4
- data.tar.gz: dfe17e0f5b654cc518d813ec9c645edcb951b9b8a8111f8360dba5c078639934
3
+ metadata.gz: 98d097fc63cfed0036ed0d71348d46641b870d78be7f13cdca990cc00793f4c9
4
+ data.tar.gz: 8308890358478cfd66420278d8739fe718fcde66d6d12aa81588ccdc2bd8b54e
5
5
  SHA512:
6
- metadata.gz: 19bbc2692b590850e2b73de9d8c082c200da8b667083715156bbcf80004d43ada5876038c79f2fee12dc0bd2c40b1cae49c5df80074abd75f01fb1d6f1f075e0
7
- data.tar.gz: da2dd4a76af69919b00a57e2db4f75ef1ba2b6bf18c4631b71472c3d88eb1729affd4e8d6d7d5facb397cabbde6b395a7093b6b3f59c3cbb739cf130dfd924d2
6
+ metadata.gz: c089a1599692d321d4361d03d92f6ca79c65b11072230de43cc7225727a6bbfc633e242fe68209a4f60034e2127f1a2b350282f7c2331a6b0d1193c01068e381
7
+ data.tar.gz: 23eca7c41af07bc4a72d47159f1e7c8834af7b4cfe2bcf9c8092face5f6e9c0a28d8135880a692e590a7f19e50edfbb6374c3345c453f9ac678982a0e269dca0
data/README.md CHANGED
@@ -139,6 +139,12 @@ After many false starts, this repo includes two (seemingly functional) github wo
139
139
 
140
140
  ## Version History
141
141
 
142
+ ### 0.9.2
143
+ * Fix redirect url
144
+ * No longer does it take user back to page they were on
145
+ * This caused problems with FusionAuth which wants all redirect URLs whitelisted
146
+ * Update initializer defaults
147
+
142
148
  ### 0.9.1
143
149
  * Facilitate specs for privileged users by providing spec_user_data on AppContext
144
150
 
@@ -13,9 +13,7 @@ module OauthIm
13
13
  end
14
14
 
15
15
  def logout_url
16
- @logout_url ||= "#{idp_url}/oauth2/logout" \
17
- "?post_logout_redirect_uri=#{return_to_url}" \
18
- "&client_id=#{client_id}"
16
+ @logout_url ||= "#{idp_url}/oauth2/logout?client_id=#{client_id}"
19
17
  end
20
18
 
21
19
  def user_jwt
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OauthIm
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.2'
5
5
  end
data/lib/oauth_im.rb CHANGED
@@ -12,13 +12,10 @@ module OauthIm
12
12
  DEFAULT_AUTH_AUTHORIZE_URL = '/oauth2/authorize'
13
13
  DEFAULT_AUTH_CALLBACK_ROUTE = 'callback'
14
14
  DEFAULT_AUTH_TOKEN_URL = '/oauth2/token'
15
- DEFAULT_AUTH_IDP_URL = 'https://illustrativemath-dev.fusionauth.io'
16
15
  DEFAULT_AUTH_ISS_DOMAIN = 'illustrativemathematics.org'
17
- DEFAULT_AUTH_API_KEY = nil
18
- DEFAULT_AUTH_CLIENT_ID = nil
19
- DEFAULT_AUTH_CLIENT_SECRET = nil
20
- DEFAULT_AUTH_HMAC = nil
21
- DEFAULT_AUTH_RSA_PUBLIC = nil
16
+ DEFAULT_AUTH_IDP_URL_LIVE = 'https://login.illustrativemathics.org'
17
+ DEFAULT_AUTH_IDP_URL_TEST = 'https://illustrativemath-dev.fusionauth.io'
18
+ DEFAULT_AUTH_IDP_URL = DEFAULT_AUTH_IDP_URL_TEST
22
19
 
23
20
  class << self
24
21
  attr_reader :configuration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth_im
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Connally
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fusionauth_client