oidc_provider 0.3.7 → 0.3.8

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: 549e90cc02233123dcb8a39bf6ce932b5ab6a184634e182fe3c9ab3fc041b874
4
- data.tar.gz: d795833672a20caa6b0826bea62dd49c055007af06a5abd5d2ac5a7e3e4261d2
3
+ metadata.gz: cb23ef5e321d9cb62cc42b2dc12f889d0cb1afdf196a0325cf366c5e51042041
4
+ data.tar.gz: 9c8561368c279b8357010eba05af33273ae9edd65f9a79abb3ecc816db740e78
5
5
  SHA512:
6
- metadata.gz: 3e1130f76cc114fcce43cb70587402f802e3b06328923541eb5e00fc6ce385897531f8215ecd129fe24d97916186e773c20b9c6d39c357b9dbd36d6530bb1609
7
- data.tar.gz: fae1e2e09a6eff7a660a440e2a5c9486f444c04d9c7c25b2722d7ac331bb9c733df03bdf14d78955cabfdf5b5ccd4c00a36dc4b673bc8fb3050ac2d1c755b030
6
+ metadata.gz: b70af33eb18c724ea06966d38095ba2721cb95f2724b1a29b098a2e4960f166863475d96d702554747e08b252adb237ed8091d5ccd062931886bb54e78f936cf
7
+ data.tar.gz: dead7551211061e07783f4120c3abd1b8c9dedb3c048c8636feeabeec9ee97ce444a83a1b29e64c84eaab6729a89a1d7ba1cb55995ab15c21df440bb96e4db1e
@@ -1,6 +1,5 @@
1
1
  module OIDCProvider
2
2
  class ApplicationController < ActionController::Base
3
3
  include Concerns::Authentication
4
- include Concerns::Session
5
4
  end
6
5
  end
@@ -4,7 +4,8 @@ module OIDCProvider
4
4
 
5
5
  def destroy
6
6
  unauthenticate!
7
- redirect_to after_oidc_sign_out_path
7
+ redirect_to "/" unless OIDCProvider.after_sign_out_path
8
+ redirect_to OIDCProvider.after_sign_out_path.respond_to?(:call) ? OIDCProvider.after_sign_out_path.call(params) : OIDCProvider.after_sign_out_path
8
9
  end
9
10
  end
10
11
  end
@@ -40,6 +40,8 @@ module OIDCProvider
40
40
  mattr_accessor :account_identifier
41
41
  @@account_identifier = :id
42
42
 
43
+ mattr_accessor :after_sign_out_path
44
+
43
45
  def self.add_client(&block)
44
46
  @@clients << Client::Builder.new(&block).build
45
47
  end
@@ -1,3 +1,3 @@
1
1
  module OIDCProvider
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oidc_provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Carey
@@ -52,7 +52,6 @@ files:
52
52
  - app/controllers/oidc_provider/authorizations_controller.rb
53
53
  - app/controllers/oidc_provider/concerns/authentication.rb
54
54
  - app/controllers/oidc_provider/concerns/connect_endpoint.rb
55
- - app/controllers/oidc_provider/concerns/session.rb
56
55
  - app/controllers/oidc_provider/discovery_controller.rb
57
56
  - app/controllers/oidc_provider/sessions_controller.rb
58
57
  - app/controllers/oidc_provider/user_infos_controller.rb
@@ -1,9 +0,0 @@
1
- module OIDCProvider
2
- module Concerns
3
- module Session
4
- def after_oidc_sign_out_path
5
- "/"
6
- end
7
- end
8
- end
9
- end