keratin-authn 0.5.1 → 0.6.0

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
  SHA1:
3
- metadata.gz: 5d2d826dd40be664ad919a13a8dd52e7284017d5
4
- data.tar.gz: df99c6ea9df6465def2e65266af262c1a2d1ffd0
3
+ metadata.gz: 3dae161e761e78559025edb67c4b5eb06898cb03
4
+ data.tar.gz: 77e9e031b3c920b01b735ac315ee2343a1f0e894
5
5
  SHA512:
6
- metadata.gz: 90cedee1587bd5585083cfe535a31d2788b1682e0ca12be2da50dd06fe1386706e5cac6b3613b1c6daf0bb81132d0806aa9c21251b0696b274a90e3625b0874f
7
- data.tar.gz: 8c9ead274600d3d4ecbcb222a14356bb9b954942241e1a3d6d1fac6fd4ac8e1f3f22f07addc9f67dd467c01b9cb2b9c74b306a6880ebc28580bcdc762ca4d732
6
+ metadata.gz: c338e632b1e0de5af48d167a2aee87b2b2d9bde9a5df115a8d43396f9ebe66e5fd991641ad0d458bf3249179851173a2d5c9a13637d014872f16e1655f775c29
7
+ data.tar.gz: 76178336d908368af7705d1e0a3f522d70a4c6b82007ad0a763aedd549692aaed804adc140767c4f0cc8b04027b0c72c1640c1599a3c2ada90331e71dd586552
data/README.md CHANGED
@@ -45,6 +45,8 @@ logout functionality there as it can also take care of deleting the cookie.
45
45
 
46
46
  ### Modifying Accounts
47
47
 
48
+ * `Keratin.authn.update(account_id, username: 'new@example.tech')`: will synchronize an email change
49
+ with the AuthN server.
48
50
  * `Keratin.authn.lock(account_id)`: will lock an account, revoking all sessions (when they time out)
49
51
  and disallowing any new logins. Intended for user moderation actions.
50
52
  * `Keratin.authn.unlock(account_id)`: will unlock an account, restoring normal functionality.
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
 
13
13
  spec.summary = 'Client gem for keratin/authn service.'
14
14
  # spec.description = ''
15
- # spec.homepage = ''
15
+ spec.homepage = 'https://github.com/keratin/authn-rb'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
18
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -3,6 +3,12 @@ require 'net/http'
3
3
 
4
4
  module Keratin::AuthN
5
5
  class Issuer < Keratin::Client
6
+ def update(account_id, username:)
7
+ patch(path: "/accounts/#{account_id}", body: {
8
+ username: username
9
+ }).result
10
+ end
11
+
6
12
  def lock(account_id)
7
13
  patch(path: "/accounts/#{account_id}/lock").result
8
14
  end
@@ -1,5 +1,5 @@
1
1
  module Keratin # rubocop:disable Style/ClassAndModuleChildren
2
2
  module AuthN
3
- VERSION = '0.5.1'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keratin-authn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lance Ivy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-01 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-jwt
@@ -164,7 +164,7 @@ files:
164
164
  - lib/keratin/authn/testing.rb
165
165
  - lib/keratin/authn/version.rb
166
166
  - lib/keratin/client.rb
167
- homepage:
167
+ homepage: https://github.com/keratin/authn-rb
168
168
  licenses:
169
169
  - LGPL-3.0
170
170
  metadata: {}