oidc_provider 0.3.2 → 0.3.7

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: 7c504532c6405c7f41979a993c21991615aa11f712c6a15614fc39fb13e8ab37
4
- data.tar.gz: 71cb6284b3343f18c94d088c9cc4684c2d4af33a87533dd7221736b368d2cfc7
3
+ metadata.gz: 549e90cc02233123dcb8a39bf6ce932b5ab6a184634e182fe3c9ab3fc041b874
4
+ data.tar.gz: d795833672a20caa6b0826bea62dd49c055007af06a5abd5d2ac5a7e3e4261d2
5
5
  SHA512:
6
- metadata.gz: 8409ca665b3ccc46b0704181b98edec93425f86d149b658cdcbe849d908627b8b30dd5dde1b3b76b24b02c5afa373a2091628375bc76bf0b11c44d04cb372926
7
- data.tar.gz: e34af03142b05bedcfd334f7845c9de3395b86372ab76f4c67c4e9204c53b8b28018440167ebc8ff43d79216c53ec2b48a0e6cc56aa4d83d97efd5817593dcdf
6
+ metadata.gz: 3e1130f76cc114fcce43cb70587402f802e3b06328923541eb5e00fc6ce385897531f8215ecd129fe24d97916186e773c20b9c6d39c357b9dbd36d6530bb1609
7
+ data.tar.gz: fae1e2e09a6eff7a660a440e2a5c9486f444c04d9c7c25b2722d7ac331bb9c733df03bdf14d78955cabfdf5b5ccd4c00a36dc4b673bc8fb3050ac2d1c755b030
@@ -1,5 +1,6 @@
1
1
  module OIDCProvider
2
2
  class ApplicationController < ActionController::Base
3
3
  include Concerns::Authentication
4
+ include Concerns::Session
4
5
  end
5
6
  end
@@ -18,6 +18,10 @@ module OIDCProvider
18
18
  raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized.new
19
19
  end
20
20
  end
21
+
22
+ def unauthenticate!
23
+ send(OIDCProvider.current_unauthenticate_method)
24
+ end
21
25
  end
22
26
  end
23
27
  end
@@ -0,0 +1,9 @@
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
@@ -1,10 +1,10 @@
1
1
  module OIDCProvider
2
2
  class SessionsController < ApplicationController
3
- before_filter :require_authentication
3
+ before_action :require_authentication
4
4
 
5
5
  def destroy
6
6
  unauthenticate!
7
- redirect_to root_url
7
+ redirect_to after_oidc_sign_out_path
8
8
  end
9
9
  end
10
10
  end
@@ -34,6 +34,9 @@ module OIDCProvider
34
34
  mattr_accessor :current_authentication_method
35
35
  @@current_authentication_method = :authenticate_user!
36
36
 
37
+ mattr_accessor :current_unauthenticate_method
38
+ @@current_unauthenticate_method = :sign_out
39
+
37
40
  mattr_accessor :account_identifier
38
41
  @@account_identifier = :id
39
42
 
@@ -1,3 +1,3 @@
1
1
  module OIDCProvider
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oidc_provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Carey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2020-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,7 @@ 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
55
56
  - app/controllers/oidc_provider/discovery_controller.rb
56
57
  - app/controllers/oidc_provider/sessions_controller.rb
57
58
  - app/controllers/oidc_provider/user_infos_controller.rb
@@ -94,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  - !ruby/object:Gem::Version
95
96
  version: '0'
96
97
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.7.6.2
98
+ rubygems_version: 3.0.3
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Uses the openid_connect gem to turn a Rails app into an OpenID Connect provider.