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 +4 -4
- data/README.md +2 -0
- data/keratin-authn.gemspec +1 -1
- data/lib/keratin/authn/issuer.rb +6 -0
- data/lib/keratin/authn/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dae161e761e78559025edb67c4b5eb06898cb03
|
4
|
+
data.tar.gz: 77e9e031b3c920b01b735ac315ee2343a1f0e894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/keratin-authn.gemspec
CHANGED
@@ -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
|
-
|
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.
|
data/lib/keratin/authn/issuer.rb
CHANGED
@@ -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
|
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.
|
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-
|
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: {}
|