heimdall_auth 1.11.0 → 2.0.0
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 +4 -4
- data/CHANGELOG.md +49 -0
- data/README.md +53 -0
- data/Rakefile +3 -7
- data/app/controllers/heimdall_auth/sessions_controller.rb +3 -0
- data/lib/heimdall_auth/authentication_additions.rb +2 -1
- data/lib/heimdall_auth/engine.rb +21 -1
- data/lib/heimdall_auth/route_constraint.rb +15 -10
- data/lib/heimdall_auth/user.rb +61 -4
- data/lib/heimdall_auth/version.rb +1 -1
- data/lib/heimdall_auth.rb +11 -5
- data/lib/omniauth/stategies/heimdall.rb +2 -1
- metadata +54 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00f858baecaa633364ffda4b319e9217711a165d64e05470ca2c5670df1932dd
|
|
4
|
+
data.tar.gz: 198dd785f8f05636a0e5313dfab036f88966cad4c11f2a06363ee679509c82c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d05ca14e37021d573536d977cc0a0597f5256d9a3da814dc1e2293a616f1b1169e2ffea2bc74450a7c60332c2671d040576373bf6686be6d96918e0118489a1c
|
|
7
|
+
data.tar.gz: 294cc1ea4143475499b1f3c5b1f5693381f649f4e97f6109785c0b3938f7b6780fed42e4e684e2d91b60ec0a7c5aab40a56d2215ab9e2a8579e49bb23be4a9f9
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
Version 2.0 allows current versions of omniauth, oauth2, cancancan and rack. What a service sends
|
|
6
|
+
to Heimdall is unchanged. Services on Rails older than 7.0 or Ruby older than 3.1 stay on 1.11.0.
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- `HeimdallAuth::User` answers every attribute that Heimdall delivers, for example
|
|
11
|
+
`user.is_connect_api_key` or `user.approved_for_live_usage[:ticketing]`. Parsing `raw_data` is not
|
|
12
|
+
needed any more. A role (a name that starts with `is_`) that Heimdall did not deliver is `nil`.
|
|
13
|
+
- `HeimdallAuth::User#attributes` and `#[]`.
|
|
14
|
+
- Query methods for all attributes: `user.is_admin?`, `user.is_inspector?`, `user.email?`.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- `accessible_via_token` accepts paths without a leading slash (`'sidekiq/stats'`). Before, such a
|
|
19
|
+
path never matched and the token had no effect.
|
|
20
|
+
- `accessible_via_token` does not grant access any more if the configured token is an empty string
|
|
21
|
+
and the request sends an empty `token` parameter.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Requires Rails 7.0 or newer (was 5.0) and Ruby 3.1 or newer.
|
|
26
|
+
- Requires `omniauth >= 2.1, < 3` (was `~> 1.9.0`), `omniauth-oauth2 >= 1.8, < 2` (was `~> 1.6.0`)
|
|
27
|
+
and `oauth2 >= 2.0.10, < 3` (was 1.4 through omniauth-oauth2). This allows rack 3.
|
|
28
|
+
- Requires `cancancan >= 3.2, < 4` (was `~> 3.2.0`). cancancan 3.7 changes results of
|
|
29
|
+
`accessible_by` in some cases. A service that is not ready for that pins `cancancan` itself.
|
|
30
|
+
- `HeimdallAuth::User` has no setters for roles any more (`user.is_admin = true`). Build the user with
|
|
31
|
+
`HeimdallAuth::User.new(is_admin: true)`.
|
|
32
|
+
- A request without an access token does not ask Heimdall any more. Before, it sent a request with
|
|
33
|
+
an empty bearer token and got 401.
|
|
34
|
+
- The gem sets `OmniAuth.config.allowed_request_methods = %i[get post]` and
|
|
35
|
+
`OmniAuth.config.silence_get_warning = true`, because the login is still started with `GET`.
|
|
36
|
+
|
|
37
|
+
### Deprecated
|
|
38
|
+
|
|
39
|
+
Everything in this list is removed in 3.0. The warnings go through
|
|
40
|
+
`Rails.application.deprecators[:heimdall_auth]`, so an application with
|
|
41
|
+
`config.active_support.deprecation = :raise` in the test environment finds the usages.
|
|
42
|
+
|
|
43
|
+
- The sign in with the parameter `user_token`.
|
|
44
|
+
- `HeimdallAuth::User#raw_data`. Use the reader of the attribute (`user.is_connect_api_key`) or
|
|
45
|
+
`user.attributes` instead of `JSON.parse(user.raw_data)`. `user.attributes.to_h` is the same hash.
|
|
46
|
+
- `HeimdallAuth::User#key_type` and `#key_environment`. Use `app_type` and `app_environment`.
|
|
47
|
+
They wrote a line to the log before and are real deprecation warnings now.
|
|
48
|
+
- Starting the login with `GET /auth/heimdall`. Version 3.0 will start it with `POST` and a CSRF
|
|
49
|
+
token. There is no warning for this, because a service can not change it yet.
|
data/README.md
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
# HeimdallAuth
|
|
2
2
|
This makes it easy to equip an empty rails application with our Heimdall Auth features.
|
|
3
3
|
|
|
4
|
+
## Requirements
|
|
5
|
+
|
|
6
|
+
- Rails 7.0 or newer, Ruby 3.1 or newer. Older applications stay on version 1.11.0.
|
|
7
|
+
- A Heimdall instance. Version 2.0 sends exactly the same requests to Heimdall as version 1.
|
|
8
|
+
|
|
9
|
+
## Upgrading from 1.x to 2.0
|
|
10
|
+
|
|
11
|
+
`CHANGELOG.md` lists all changes. For an application this means:
|
|
12
|
+
|
|
13
|
+
1. Run `bundle update heimdall_auth`. This moves omniauth to version 2 and oauth2 to version 2 and allows
|
|
14
|
+
rack 3 and cancancan up to 3.7. cancancan 3.7 changes results of `accessible_by` in some cases; pin
|
|
15
|
+
`cancancan` in the `Gemfile` of the application if it is not ready for that.
|
|
16
|
+
2. Nothing changes in the routes, the configuration or the environment variables.
|
|
17
|
+
3. Run the tests with `config.active_support.deprecation = :raise` and replace what is deprecated:
|
|
18
|
+
`JSON.parse(current_user.raw_data)` (use `current_user.attributes` or the reader of the attribute),
|
|
19
|
+
`key_type` and `key_environment` (use `app_type` and `app_environment`), the sign in with `user_token`.
|
|
20
|
+
4. Roles have no setters any more. Build users in specs with `HeimdallAuth::User.new(is_admin: true)`.
|
|
21
|
+
5. `accessible_via_token` now also matches paths that are written without a leading slash. Make sure that
|
|
22
|
+
the token of such a path is set and secret.
|
|
23
|
+
6. An override of `current_user` that only avoids the request to Heimdall without an access token can be
|
|
24
|
+
removed. The gem does not send that request any more.
|
|
25
|
+
7. The gem sets `OmniAuth.config.allowed_request_methods = %i[get post]`. This also applies to other
|
|
26
|
+
OmniAuth strategies of the application.
|
|
27
|
+
|
|
28
|
+
Independent of this gem: Rails before 8.1 does not work with json 3. Such an application needs
|
|
29
|
+
`gem "json", "< 3"`.
|
|
30
|
+
|
|
31
|
+
## The current user and its roles
|
|
32
|
+
|
|
33
|
+
`current_user` is a `HeimdallAuth::User`. It answers everything that Heimdall delivers in `/me.json`,
|
|
34
|
+
so a new role or attribute in Heimdall can be used without a new version of this gem:
|
|
35
|
+
|
|
36
|
+
```ruby
|
|
37
|
+
current_user.email
|
|
38
|
+
current_user.is_admin
|
|
39
|
+
current_user.is_inspector # a role that this gem does not know
|
|
40
|
+
current_user.is_inspector? # true or false
|
|
41
|
+
current_user.approved_for_live_usage[:ticketing] # nested attributes, strings or symbols as keys
|
|
42
|
+
current_user.attributes # everything, as a hash with indifferent access
|
|
43
|
+
current_user[:email]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- A role is every name that starts with `is_`. A role that Heimdall did not deliver is `nil`. An ability
|
|
47
|
+
can ask for a role before it exists in Heimdall, and a typo leads to fewer rights, never to more.
|
|
48
|
+
- Every other name that Heimdall did not deliver raises `NoMethodError`.
|
|
49
|
+
- A name with a question mark answers whether the attribute is present, as `true` or `false`.
|
|
50
|
+
- `current_user.raw_data` (the answer of Heimdall as JSON string) is deprecated. Use the readers or
|
|
51
|
+
`current_user.attributes` instead of `JSON.parse(current_user.raw_data)`.
|
|
52
|
+
|
|
53
|
+
In specs a user is built with `HeimdallAuth::User.new(is_admin: true, is_inspector: true)`.
|
|
54
|
+
|
|
4
55
|
## New Feature: Secure Sidekiq (and other mounts)
|
|
5
56
|
Use it like so in `config/routes.rb`:
|
|
6
57
|
```
|
|
@@ -35,6 +86,8 @@ Options:
|
|
|
35
86
|
- ACTION & RESOURCE - like any action and resource in cancancan
|
|
36
87
|
- :accessible_via_token -> Defines paths that are available via a particular token. e.g. for Watchdog services like Datadog
|
|
37
88
|
- URL needs then to have the token as `?token=secretpassword` in the query params. Like: `https://webhook.vesputi-abc.de/sidekiq/stats?token=secretpassword`
|
|
89
|
+
- The path can be written with or without a leading slash (`'/sidekiq/stats'` or `'sidekiq/stats'`).
|
|
90
|
+
- A path whose token is empty or not set is not accessible via token.
|
|
38
91
|
|
|
39
92
|
## Installation and Usage
|
|
40
93
|
|
data/Rakefile
CHANGED
|
@@ -16,12 +16,8 @@ end
|
|
|
16
16
|
|
|
17
17
|
require 'bundler/gem_tasks'
|
|
18
18
|
|
|
19
|
-
require
|
|
19
|
+
require "rspec/core/rake_task"
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
t.libs << 'test'
|
|
23
|
-
t.pattern = 'test/**/*_test.rb'
|
|
24
|
-
t.verbose = false
|
|
25
|
-
end
|
|
21
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
26
22
|
|
|
27
|
-
task default: :
|
|
23
|
+
task default: :spec
|
|
@@ -6,6 +6,9 @@ class HeimdallAuth::SessionsController < ApplicationController
|
|
|
6
6
|
heimdall_auth_url = auth_provider_url(provider: "heimdall")
|
|
7
7
|
|
|
8
8
|
if user_token
|
|
9
|
+
HeimdallAuth.deprecator.warn(
|
|
10
|
+
"The sign in with the parameter user_token is deprecated and will be removed in HeimdallAuth 3.0."
|
|
11
|
+
)
|
|
9
12
|
do_a_signin_precall(user_token, heimdall_auth_url)
|
|
10
13
|
else
|
|
11
14
|
redirect_to heimdall_auth_url, allow_other_host: true
|
|
@@ -37,7 +37,8 @@ module HeimdallAuth
|
|
|
37
37
|
|
|
38
38
|
def get_user_from_auth_server(access_token)
|
|
39
39
|
client = OAuth2::Client.new(ENV['HEIMDALL_APPLICATION_ID'], ENV['HEIMDALL_APPLICATION_SECRET'], :site => ENV['HEIMDALL_SERVER_URL'])
|
|
40
|
-
|
|
40
|
+
# snaky: false keeps the keys exactly as Heimdall sends them, as oauth2 1.x did.
|
|
41
|
+
user_data = OAuth2::AccessToken.new(client,access_token).get('/me.json', snaky: false).parsed
|
|
41
42
|
User.new(user_data)
|
|
42
43
|
end
|
|
43
44
|
|
data/lib/heimdall_auth/engine.rb
CHANGED
|
@@ -4,6 +4,23 @@ module HeimdallAuth
|
|
|
4
4
|
HeimdallAuth::Rails::Routes.install!
|
|
5
5
|
end
|
|
6
6
|
|
|
7
|
+
initializer "heimdall_auth.deprecator" do |app|
|
|
8
|
+
if app.respond_to?(:deprecators)
|
|
9
|
+
app.deprecators[:heimdall_auth] = HeimdallAuth.deprecator
|
|
10
|
+
else
|
|
11
|
+
# Rails 7.0 has no registry of deprecators. Use the behavior of the application.
|
|
12
|
+
config.after_initialize { HeimdallAuth.deprecator.behavior = ActiveSupport::Deprecation.behavior }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# DEPRECATED: OmniAuth 2 only starts the login with POST and a CSRF token by default.
|
|
17
|
+
# The gem still starts it with GET (SessionsController#new redirects to /auth/heimdall).
|
|
18
|
+
# HeimdallAuth 3.0 will start the login with POST and remove this initializer.
|
|
19
|
+
initializer "heimdall_auth.omniauth" do
|
|
20
|
+
OmniAuth.config.allowed_request_methods = %i[get post]
|
|
21
|
+
OmniAuth.config.silence_get_warning = true
|
|
22
|
+
end
|
|
23
|
+
|
|
7
24
|
initializer "heimdall_auth.middleware" do |app|
|
|
8
25
|
unless [ENV['HEIMDALL_SERVER_URL'], ENV['HEIMDALL_APPLICATION_ID'], ENV['HEIMDALL_APPLICATION_SECRET']].any? &:nil?
|
|
9
26
|
app.config.middleware.use OmniAuth::Builder do
|
|
@@ -11,7 +28,10 @@ module HeimdallAuth
|
|
|
11
28
|
ENV['HEIMDALL_APPLICATION_ID'],
|
|
12
29
|
ENV['HEIMDALL_APPLICATION_SECRET'],
|
|
13
30
|
client_options: {
|
|
14
|
-
site: ENV['HEIMDALL_SERVER_URL']
|
|
31
|
+
site: ENV['HEIMDALL_SERVER_URL'],
|
|
32
|
+
# Send the client credentials in the request body of the token request, as oauth2 1.x
|
|
33
|
+
# did. oauth2 2.x would send them as basic authentication header by default.
|
|
34
|
+
auth_scheme: :request_body
|
|
15
35
|
}
|
|
16
36
|
end
|
|
17
37
|
else
|
|
@@ -39,19 +39,24 @@ module HeimdallAuth
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def matches?(matching_request)
|
|
42
|
-
if
|
|
43
|
-
@accessible_via_token.keys.each do |path|
|
|
44
|
-
if path.to_s == matching_request.path.to_s
|
|
45
|
-
expected_token = @accessible_via_token[path]
|
|
46
|
-
if expected_token && ActiveSupport::SecurityUtils.secure_compare(matching_request.query_parameters["token"], expected_token)
|
|
47
|
-
return true
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
42
|
+
return true if accessible_via_token?(matching_request)
|
|
52
43
|
|
|
53
44
|
AuthenticationChecker.new(matching_request).can?(@action, @resource)
|
|
54
45
|
end
|
|
55
46
|
|
|
47
|
+
private
|
|
48
|
+
|
|
49
|
+
# The paths can be configured with or without a leading slash. An empty token never grants access.
|
|
50
|
+
def accessible_via_token?(matching_request)
|
|
51
|
+
given_token = matching_request.query_parameters["token"]
|
|
52
|
+
return false if @accessible_via_token.blank? || given_token.blank?
|
|
53
|
+
|
|
54
|
+
@accessible_via_token.any? do |path, expected_token|
|
|
55
|
+
"/#{path.to_s.delete_prefix("/")}" == matching_request.path.to_s &&
|
|
56
|
+
expected_token.present? &&
|
|
57
|
+
ActiveSupport::SecurityUtils.secure_compare(given_token, expected_token)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
56
61
|
end
|
|
57
62
|
end
|
data/lib/heimdall_auth/user.rb
CHANGED
|
@@ -2,28 +2,85 @@ class HeimdallAuth::User
|
|
|
2
2
|
include ActiveModel::Conversion
|
|
3
3
|
extend ActiveModel::Naming
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
# Prefix of the roles. A role that Heimdall did not deliver is answered with nil.
|
|
6
|
+
ROLE_PREFIX = "is_"
|
|
7
|
+
|
|
8
|
+
# Attributes that always answer, with nil if Heimdall did not deliver them. Specs of the services
|
|
9
|
+
# build users with a part of them. Roles are not listed: every name with the prefix is a role.
|
|
10
|
+
ATTRIBUTE_NAMES = %i[id name email app_id app_type app_environment].freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor(*ATTRIBUTE_NAMES)
|
|
13
|
+
attr_accessor :is_invalid, :raw_data
|
|
14
|
+
|
|
15
|
+
# Everything that Heimdall delivered, with indifferent access: user.attributes[:email]
|
|
16
|
+
attr_reader :attributes
|
|
7
17
|
|
|
8
18
|
def initialize(attributes = {})
|
|
19
|
+
@attributes = ActiveSupport::HashWithIndifferentAccess.new
|
|
9
20
|
attributes.each do |name, value|
|
|
21
|
+
@attributes[name] = value
|
|
10
22
|
setter_method = "#{name}="
|
|
11
23
|
send(setter_method, value) if self.respond_to? setter_method
|
|
12
24
|
end
|
|
13
25
|
self.raw_data = attributes.to_json
|
|
14
26
|
end
|
|
15
27
|
|
|
28
|
+
def [](name)
|
|
29
|
+
attributes[name]
|
|
30
|
+
end
|
|
31
|
+
|
|
16
32
|
def key_type
|
|
17
|
-
Rails.logger.warn("key_type is deprecated, please use app_type")
|
|
18
33
|
app_type
|
|
19
34
|
end
|
|
20
35
|
|
|
21
36
|
def key_environment
|
|
22
|
-
Rails.logger.warn("key_environment is deprecated, please use app_environment")
|
|
23
37
|
app_environment
|
|
24
38
|
end
|
|
25
39
|
|
|
40
|
+
deprecate key_type: :app_type, key_environment: :app_environment,
|
|
41
|
+
raw_data: "use attributes or the reader of the attribute, for example user.is_connect_api_key",
|
|
42
|
+
deprecator: HeimdallAuth.deprecator
|
|
43
|
+
|
|
26
44
|
def persisted?
|
|
27
45
|
false
|
|
28
46
|
end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
# Answers every attribute that Heimdall delivered, so that a new role or attribute can be used
|
|
51
|
+
# without a new version of this gem: user.is_inspector, user.approved_for_live_usage[:ticketing]
|
|
52
|
+
#
|
|
53
|
+
# A role (a name that starts with "is_") that Heimdall did not deliver is nil: an ability can ask
|
|
54
|
+
# for it before it exists, and a typo leads to fewer rights, never to more. Every other unknown
|
|
55
|
+
# name raises NoMethodError. Methods that exist are never answered from the attributes.
|
|
56
|
+
#
|
|
57
|
+
# A name with a question mark asks whether the attribute is present: user.is_inspector?
|
|
58
|
+
def method_missing(name, *arguments)
|
|
59
|
+
return super unless arguments.empty?
|
|
60
|
+
|
|
61
|
+
if attribute_reader?(name)
|
|
62
|
+
attributes[name]
|
|
63
|
+
elsif attribute_query?(name)
|
|
64
|
+
public_send(name.to_s.chomp("?")).present?
|
|
65
|
+
else
|
|
66
|
+
super
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def respond_to_missing?(name, include_private = false)
|
|
71
|
+
attribute_reader?(name) || attribute_query?(name) || super
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def attribute_reader?(name)
|
|
75
|
+
name = name.to_s
|
|
76
|
+
attributes.key?(name) || (name.start_with?(ROLE_PREFIX) && name.match?(/\A\w+\z/))
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def attribute_query?(name)
|
|
80
|
+
name = name.to_s
|
|
81
|
+
return false unless name.end_with?("?")
|
|
82
|
+
|
|
83
|
+
attribute = name.chomp("?")
|
|
84
|
+
ATTRIBUTE_NAMES.include?(attribute.to_sym) || attribute_reader?(attribute)
|
|
85
|
+
end
|
|
29
86
|
end
|
data/lib/heimdall_auth.rb
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
require "active_support"
|
|
2
|
+
require "active_support/deprecation"
|
|
3
|
+
|
|
4
|
+
module HeimdallAuth
|
|
5
|
+
# Deprecations of this gem. A Rails application finds it as
|
|
6
|
+
# `Rails.application.deprecators[:heimdall_auth]` (Rails 7.1 or newer).
|
|
7
|
+
def self.deprecator
|
|
8
|
+
@deprecator ||= ActiveSupport::Deprecation.new("3.0", "HeimdallAuth")
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
1
12
|
require "heimdall_auth/railtie" if defined?(Rails)
|
|
2
13
|
|
|
3
14
|
require "heimdall_auth/engine"
|
|
@@ -10,8 +21,3 @@ require "heimdall_auth/authentication_additions"
|
|
|
10
21
|
require "heimdall_auth/controller_additions"
|
|
11
22
|
|
|
12
23
|
require "heimdall_auth/route_constraint"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
module HeimdallAuth
|
|
16
|
-
# Your code goes here...
|
|
17
|
-
end
|
|
@@ -22,7 +22,8 @@ module OmniAuth
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def raw_info
|
|
25
|
-
|
|
25
|
+
# snaky: false keeps the keys exactly as Heimdall sends them, as oauth2 1.x did.
|
|
26
|
+
@raw_info ||= access_token.get('/me.json', snaky: false).parsed
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
def callback_url
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: heimdall_auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- René Meye
|
|
@@ -15,7 +15,7 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '
|
|
18
|
+
version: '7.0'
|
|
19
19
|
- - "<"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
21
|
version: '9.0'
|
|
@@ -25,7 +25,7 @@ dependencies:
|
|
|
25
25
|
requirements:
|
|
26
26
|
- - ">="
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: '
|
|
28
|
+
version: '7.0'
|
|
29
29
|
- - "<"
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
31
|
version: '9.0'
|
|
@@ -33,65 +33,92 @@ dependencies:
|
|
|
33
33
|
name: omniauth
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
|
35
35
|
requirements:
|
|
36
|
-
- - "
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '2.1'
|
|
39
|
+
- - "<"
|
|
37
40
|
- !ruby/object:Gem::Version
|
|
38
|
-
version:
|
|
41
|
+
version: '3'
|
|
39
42
|
type: :runtime
|
|
40
43
|
prerelease: false
|
|
41
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
42
45
|
requirements:
|
|
43
|
-
- - "
|
|
46
|
+
- - ">="
|
|
44
47
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 1
|
|
48
|
+
version: '2.1'
|
|
49
|
+
- - "<"
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '3'
|
|
46
52
|
- !ruby/object:Gem::Dependency
|
|
47
53
|
name: omniauth-oauth2
|
|
48
54
|
requirement: !ruby/object:Gem::Requirement
|
|
49
55
|
requirements:
|
|
50
|
-
- - "
|
|
56
|
+
- - ">="
|
|
51
57
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: 1.
|
|
58
|
+
version: '1.8'
|
|
59
|
+
- - "<"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '2'
|
|
53
62
|
type: :runtime
|
|
54
63
|
prerelease: false
|
|
55
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
56
65
|
requirements:
|
|
57
|
-
- - "
|
|
66
|
+
- - ">="
|
|
58
67
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: 1.
|
|
68
|
+
version: '1.8'
|
|
69
|
+
- - "<"
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
version: '2'
|
|
60
72
|
- !ruby/object:Gem::Dependency
|
|
61
|
-
name:
|
|
73
|
+
name: oauth2
|
|
62
74
|
requirement: !ruby/object:Gem::Requirement
|
|
63
75
|
requirements:
|
|
64
|
-
- - "
|
|
76
|
+
- - ">="
|
|
65
77
|
- !ruby/object:Gem::Version
|
|
66
|
-
version:
|
|
78
|
+
version: 2.0.10
|
|
79
|
+
- - "<"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '3'
|
|
67
82
|
type: :runtime
|
|
68
83
|
prerelease: false
|
|
69
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
70
85
|
requirements:
|
|
71
|
-
- - "
|
|
86
|
+
- - ">="
|
|
72
87
|
- !ruby/object:Gem::Version
|
|
73
|
-
version:
|
|
88
|
+
version: 2.0.10
|
|
89
|
+
- - "<"
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '3'
|
|
74
92
|
- !ruby/object:Gem::Dependency
|
|
75
|
-
name:
|
|
93
|
+
name: cancancan
|
|
76
94
|
requirement: !ruby/object:Gem::Requirement
|
|
77
95
|
requirements:
|
|
78
|
-
- - "
|
|
96
|
+
- - ">="
|
|
79
97
|
- !ruby/object:Gem::Version
|
|
80
|
-
version:
|
|
81
|
-
|
|
98
|
+
version: '3.2'
|
|
99
|
+
- - "<"
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '4'
|
|
102
|
+
type: :runtime
|
|
82
103
|
prerelease: false
|
|
83
104
|
version_requirements: !ruby/object:Gem::Requirement
|
|
84
105
|
requirements:
|
|
85
|
-
- - "
|
|
106
|
+
- - ">="
|
|
86
107
|
- !ruby/object:Gem::Version
|
|
87
|
-
version:
|
|
88
|
-
|
|
108
|
+
version: '3.2'
|
|
109
|
+
- - "<"
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: '4'
|
|
112
|
+
description: Adds the OAuth2 sign in with Heimdall, current_user with its roles, CanCanCan
|
|
113
|
+
integration, secured mounts for engines like Sidekiq::Web and generators for new
|
|
114
|
+
applications.
|
|
89
115
|
email:
|
|
90
116
|
- rene@vesputi.com
|
|
91
117
|
executables: []
|
|
92
118
|
extensions: []
|
|
93
119
|
extra_rdoc_files: []
|
|
94
120
|
files:
|
|
121
|
+
- CHANGELOG.md
|
|
95
122
|
- MIT-LICENSE
|
|
96
123
|
- README.md
|
|
97
124
|
- Rakefile
|
|
@@ -130,14 +157,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
130
157
|
requirements:
|
|
131
158
|
- - ">="
|
|
132
159
|
- !ruby/object:Gem::Version
|
|
133
|
-
version: '
|
|
160
|
+
version: '3.1'
|
|
134
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
162
|
requirements:
|
|
136
163
|
- - ">="
|
|
137
164
|
- !ruby/object:Gem::Version
|
|
138
165
|
version: '0'
|
|
139
166
|
requirements: []
|
|
140
|
-
rubygems_version: 3.6.
|
|
167
|
+
rubygems_version: 3.6.7
|
|
141
168
|
specification_version: 4
|
|
142
|
-
summary:
|
|
169
|
+
summary: Sign in and authorization for Rails applications with the Heimdall authentication
|
|
170
|
+
service.
|
|
143
171
|
test_files: []
|