firefighter 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/firefighter/identitytoolkit.rb +10 -0
- data/lib/firefighter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ebbe214d98c7909950821f879de7c65c5901ac0dfa1594d99251349907bde46
|
4
|
+
data.tar.gz: 8cfd532905aa5e07a208bfcda957786de52e1795b5e3f3976c7a44cd4638437b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d148780c482d59e2b13909abe163ba4a80ad013003c2cb16fe075614fa17f62357ac9fabe40269e9995737a0dddf3a918055b05a17fcfcbcffee4b83cb7bacb3
|
7
|
+
data.tar.gz: 04ed2e8b446bd4bcf360a44b08c64bc28e279bd6cf90e0ab83fff9bc41f988d674857d88325aa0c4fd27c37d5f5f28550fa3461561c39f17d6f4c233e3b366fd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Talk to Firebase API from Ruby:
|
4
4
|
|
5
|
-
- identity: signup, account_info, accounts_download
|
5
|
+
- identity: signup, account_info, accounts_download, verify_password
|
6
6
|
- realtime: read, listen, write, add, delete data
|
7
7
|
- tokens: generate JWT tokens for token-auth
|
8
8
|
|
@@ -36,6 +36,8 @@ account = identitytoolkit.signup('test@test.de', 'totalgeheimespasswort')
|
|
36
36
|
account = identitytoolkit.account_info(account['idToken'])
|
37
37
|
|
38
38
|
accounts = identitytoolkit.download_accounts
|
39
|
+
|
40
|
+
account = identitytoolkit.verify_password('test@test.de', 'totalgeheimespasswort')
|
39
41
|
```
|
40
42
|
|
41
43
|
```ruby
|
@@ -14,6 +14,16 @@ module Firefighter
|
|
14
14
|
@service_account_email = service_account_email
|
15
15
|
end
|
16
16
|
|
17
|
+
def verify_password(email, password)
|
18
|
+
url = endpoint('verifyPassword')
|
19
|
+
data = {
|
20
|
+
email: email,
|
21
|
+
password: password,
|
22
|
+
returnSecureToken: true
|
23
|
+
}
|
24
|
+
call(:post, url, data)
|
25
|
+
end
|
26
|
+
|
17
27
|
def signup(email, password)
|
18
28
|
url = endpoint('signupNewUser')
|
19
29
|
data = {
|
data/lib/firefighter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firefighter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- phoet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
171
|
+
rubygems_version: 3.0.3
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Firebase API Wrapper
|