infinum_azure 0.4.1 → 0.4.3

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: 5e6ef8a6759902572c7ae4efc622d8a247e8de06c4b548701d442c56205e05dd
4
- data.tar.gz: 6c604091662f4a0eaff0b37c40b877d53560843a2d54dbe997d89806800a27a7
3
+ metadata.gz: 7b32fc31d6fa788f4166c98f65797ab00737474a53262884b5879452147b551c
4
+ data.tar.gz: 2c9c5ad54527fd2ce2617769f4fd12198b5303547738e13c2bc95037f66558b7
5
5
  SHA512:
6
- metadata.gz: 4852e62d5d9aa209d2d58c02b5a1630b3e676f71937646a014dd24d4b5e197e1d0d59ea745ac94fe7e7859495f234edd4e80d984556d61806ecd0c9fba3585bc
7
- data.tar.gz: a7445b7cf3ede9e7914d6b77aacba2e0c8879cd56b84408ba1269ba8cda667c77624431bbcb9f0dbdf112d7f0388d733094b6ce71947dda00f296dbe625acc4c
6
+ metadata.gz: b1d779f06e9c29d9c6d64575c90fd25ab6d27c0eaaed86067f89b623139ad6e90a785e7f55ec61f083747d863f9dc2ac90e300ce91b2d75bce40f9e4d676deb5
7
+ data.tar.gz: 2fdb8a81820f9d3d791af728bd726e6db56722cc30da565e91c9f6854e6135f710ff8dc52e1789002018c9ad7e86feadd4804948fd7066ebde33e7c4169d312b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.3] - 2023-07-10
4
+
5
+ - Fix bug: Use pluralized resource_name for generating the logout paths
6
+
7
+ ## [0.4.2] - 2023-06-20
8
+
9
+ - Fix bug: Always set `provider` to "infinum_azure" in default #user_migration_operation
3
10
  ## [0.4.1] - 2023-06-20
4
11
 
5
12
  - Remove `Value` JSON wrapper from Azure Users API response
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infinum_azure (0.4.1)
4
+ infinum_azure (0.4.3)
5
5
  bundler
6
6
  devise
7
7
  omniauth-infinum_azure (>= 0.3.0, < 2.0)
data/config/routes.rb CHANGED
@@ -1,8 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Rails.application.routes.draw do
4
- get '/users/auth/infinum_azure/logout', to: 'infinum_azure/resources#passthru', as: :infinum_azure_logout
5
- get '/users/auth/logout', to: 'infinum_azure/resources#destroy', as: :logout
4
+ get "/#{InfinumAzure.resource_name.pluralize.underscore}/auth/infinum_azure/logout",
5
+ to: 'infinum_azure/resources#passthru',
6
+ as: :infinum_azure_logout
7
+ get "/#{InfinumAzure.resource_name.pluralize.underscore}/auth/logout",
8
+ to: 'infinum_azure/resources#destroy',
9
+ as: :logout
6
10
 
7
11
  devise_for InfinumAzure.resource_name.pluralize.underscore, controllers: {
8
12
  omniauth_callbacks: 'infinum_azure/resources/omniauth_callbacks'
@@ -12,7 +12,7 @@ module InfinumAzure
12
12
  ],
13
13
  user_migration_scope: -> { InfinumAzure.resource_class.where(provider: 'infinum_id') },
14
14
  user_migration_operation: ->(record, resource) {
15
- record.update_attribute(:provider, provider)
15
+ record.update_attribute(:provider, 'infinum_azure')
16
16
  record.update_attribute(:uid, resource['uid'])
17
17
  }
18
18
  }.freeze
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InfinumAzure
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infinum_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Ćilimković
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-20 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler