acme-authorizer 0.1.1 → 0.2.0.beta1

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
  SHA1:
3
- metadata.gz: 57152ff21383fd9421d644be930b6b031c10ea80
4
- data.tar.gz: 21b9828ec25d3222eeb271422a7e0f5c1f9af32a
3
+ metadata.gz: b54ea865e1d8ae51fec14967db0a6aae424be410
4
+ data.tar.gz: 66072d8269af6d4f36e96e50072763d40b7fc0e4
5
5
  SHA512:
6
- metadata.gz: 77bbb714451f9a4557a5f567cb84dae98b2fdcfb5abc8c4269e2389c3843be59b1189160d85945020f1c165b80773620e09cf7548815e9ae114312c7a6f9ba4d
7
- data.tar.gz: 9ab0303c32e7dfd80049705a2a0c49d8a859053d05fc5ea84342c7d024daed11dcb04cceb3adc8552a3e942a4bb3a30aa88eb289645efd58ce778884392f29bf
6
+ metadata.gz: d5938c15a3e43a0fb4882c9b26b1bd3025b23a17bcb45627ebba78b0a73c07e53e1d345a5205f6c42f99a88b7e98a1d146f1ed4c3d1bc58b95fbce2bae6a67c2
7
+ data.tar.gz: 5227eff27d6383a7332e2fcd03b8fb34bde36b869d58173e195c333b55be32721fa1456ca2a7080b964f29e14968f65d248b403bd1d626b386b78f553403ec29
data/README.md CHANGED
@@ -11,11 +11,8 @@ gem 'acme-authorizer'
11
11
  ```
12
12
 
13
13
  NOTE: the ACME http-01 challenge/response *must* be served over HTTP without
14
- SSL. This means that your Rails application can not have the `force_ssl` flag
15
- set in your `config/application.rb`.
16
-
17
- In order to enable application wide SSL, use this alternative method:
18
- http://guides.rubyonrails.org/action_controller_overview.html#force-https-protocol
14
+ SSL. The ACME URL endpoint will opt out of `config.force_ssl` if it is set
15
+ using `config.ssl_options`.
19
16
 
20
17
  ## Configuration
21
18
 
@@ -1,6 +1,6 @@
1
1
  module Acme
2
2
  module Authorizer
3
- class TokensController < ApplicationController
3
+ class TokensController < ::Acme::Authorizer::ApplicationController
4
4
  def show
5
5
  token = params[:token]
6
6
  if acme_authorizer_config.valid_token?(token)
@@ -1,11 +1,9 @@
1
1
  module Acme
2
2
  module Authorizer
3
3
  class Engine < ::Rails::Engine
4
- InvalidConfigurationError = Class.new(StandardError)
5
-
6
4
  isolate_namespace Acme::Authorizer
7
- initializer 'acme-authorizer.config.force_ssl_assertion' do |app|
8
- raise InvalidConfigurationError, 'force_ssl can not be enabled globally. see http://guides.rubyonrails.org/action_controller_overview.html#force-https-protocol' if app.config.force_ssl
5
+ initializer 'acme-authorizer.config.set_ssl_options' do |app|
6
+ app.config.ssl_options.deep_merge! redirect: { exclude: -> request { request.path =~ /\A\/\.well-known\/acme-challenge/ } }
9
7
  end
10
8
  end
11
9
  end
@@ -1,5 +1,5 @@
1
1
  module Acme
2
2
  module Authorizer
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.2.0.beta1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acme-authorizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BetterUp Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.6
19
+ version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.1'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.2.6
29
+ version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.1'
@@ -147,9 +147,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - ">"
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: 1.3.1
153
153
  requirements: []
154
154
  rubyforge_project:
155
155
  rubygems_version: 2.6.4