zaikio-oauth_client 0.21.0 → 0.21.2

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: 24be71a3c75d9524e109cab652442d2a229ca14281a0fc3604256382eb01cf60
4
- data.tar.gz: 3e289f86bbaa43b2d6dadfd6d239aef561e39376500cde3f560f9a5838dec851
3
+ metadata.gz: ada6d2877dfd20ae398aeb0fd5c947a5308d970f55ab708b7663d1fcc478012a
4
+ data.tar.gz: 28c10750be44086099c08d43c5739a94a9971848248521fcdea9b4fd2329dd76
5
5
  SHA512:
6
- metadata.gz: 4caa7219b4ad019bd813dccc7939f8558122169fd8196edf6deedc720ae6554aba1f651ac69e5dc689ed7b6dcada682cd7bc0bb92353e49722116b179c54132c
7
- data.tar.gz: 5a3501038b5471dd8018a71f4399892ecdc80c1fba4d30e3a6d332bfd624381463994ecef6de5575de7fff0c33a7a445add000c1b12155516e715cde9c133547
6
+ metadata.gz: 731198855931d1db6fa6fb85a526803c566bfc565d7c05e40724256c30a817489498daeec03670f2adcacd8728fad8a9471d8b4c6e380c8aed89c0dd4c85a6b1
7
+ data.tar.gz: 752b4970f3f683bf9dfd0f071adb44120174d34350b30b8f682d69b6a950cfe09a15e7ca20fe203364ade0038d7097d221b82f8c456c5135eb1516209655c84d
data/README.md CHANGED
@@ -162,7 +162,7 @@ end
162
162
 
163
163
  You can then use `Current.user` anywhere.
164
164
 
165
- For **logout** use: `zaikio_oauth_client.session_path, method: :delete` or build your own controller for deleting the cookie.
165
+ For **logout** use: `zaikio_oauth_client.session_path, method: :delete` or build your own controller for deleting the cookie. If you do build your own controller, please be aware that it is possible for the access token to be nil, and you should handle this accordingly.
166
166
 
167
167
  #### Multiple clients
168
168
 
@@ -66,7 +66,7 @@ module Zaikio
66
66
 
67
67
  redirect_to send(
68
68
  respond_to?(:after_destroy_path_for) ? :after_destroy_path_for : :default_after_destroy_path_for,
69
- access_token.id
69
+ access_token&.id
70
70
  )
71
71
  end
72
72
 
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module OAuthClient
3
- VERSION = "0.21.0".freeze
3
+ VERSION = "0.21.2".freeze
4
4
  end
5
5
  end
@@ -118,6 +118,7 @@ module Zaikio
118
118
  requested_scopes: requested_scopes
119
119
  )
120
120
  .valid(valid_for.from_now)
121
+ .order(created_at: :desc)
121
122
  .first
122
123
  }
123
124
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-oauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaikio GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-10 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack