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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 420312cb25f6f5cb3f27499d7afdcadb775d287a28ae58cfcbb97f5156e68064
4
- data.tar.gz: 7ae7c7e245493062b2f3c41fc2eebde026cc84bfe3714acf9f28704bba0d6eb1
3
+ metadata.gz: 4ebbe214d98c7909950821f879de7c65c5901ac0dfa1594d99251349907bde46
4
+ data.tar.gz: 8cfd532905aa5e07a208bfcda957786de52e1795b5e3f3976c7a44cd4638437b
5
5
  SHA512:
6
- metadata.gz: 8f56406ab531b5a04381dffe158a0442d165bf32bb7b5b1b4554a45c704f3ed8bdaedf65500e48268293760a6617e93f5f01df563b37daa0a147d2437a9a5173
7
- data.tar.gz: 540c6aa22139f78f8f411beceb642e58ef7cbaf1184bff70cbb5a47e7f2766d23e8931fb09789acae6d7ca797c54f08d62e1c7768dcc5b75c6e1aaa8a173a473
6
+ metadata.gz: d148780c482d59e2b13909abe163ba4a80ad013003c2cb16fe075614fa17f62357ac9fabe40269e9995737a0dddf3a918055b05a17fcfcbcffee4b83cb7bacb3
7
+ data.tar.gz: 04ed2e8b446bd4bcf360a44b08c64bc28e279bd6cf90e0ab83fff9bc41f988d674857d88325aa0c4fd27c37d5f5f28550fa3461561c39f17d6f4c233e3b366fd
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.0
4
+
5
+ - adds `Firefighter::Identitytoolkit#verify_password`
6
+
3
7
  ### 1.1.0
4
8
 
5
9
  - compatibility with ruby 2.7.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firefighter (1.1.0)
4
+ firefighter (1.2.0)
5
5
  http (> 3.0)
6
6
  jwt (> 2.0)
7
7
 
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 = {
@@ -1,3 +1,3 @@
1
1
  module Firefighter
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.0
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-07-10 00:00:00.000000000 Z
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.1.2
171
+ rubygems_version: 3.0.3
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Firebase API Wrapper