omniauth-dropbox2 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a6349d9df69cc57527820672cc6e6ba312dceaa4d73a7cc55dbfd56c864c7ae
4
- data.tar.gz: 7433fb5e3023623ab7320ce6cafbfa78bd4a2670203f86bcfb7d13b85545e26b
3
+ metadata.gz: c2bf36577c5af12712f9664c3b95161c2a4f2f9abd2229891a8f1cad9d9d4562
4
+ data.tar.gz: 39ad7511a99bee6550d8b3fbdf7978befe45995d0787fc0bf37fb88f3de4ca42
5
5
  SHA512:
6
- metadata.gz: fc4b2958475984fdb4555d55b1f8d62eda6d76b47fdfa0d5ddd350786524752af1a52c4aa2d3a21deeaba48bd067b87eed96d287aa73a879b35fce4983183fd5
7
- data.tar.gz: 49f4cfed9ed5a94361f5553a63f4cb1ae97e3198cc55e481fe084fe10ffffe07cb05d0206c992957616a4f10e016d4728149493ccaeaf0a91468717bffe9321c
6
+ metadata.gz: a23e3c45dd325c411b40472ea4d0aca49141666b4015826e058525fb433976e73a7b4229831b9411b72420119553f0890d09783a9da4b3c703cf997ec6b97919
7
+ data.tar.gz: 5fccc4f4492f360f4f8c8c68586c7a9b3e54401ec410069673a0325fd30bf4323ba6c36d83a1bcfb388f507bde9c88d4b59b8db13fc6f7d9fa58b405584f839c
data/README.md CHANGED
@@ -29,11 +29,50 @@ use OmniAuth::Builder do
29
29
  end
30
30
  ```
31
31
 
32
- Auth hash includes:
32
+ ## Auth Hash
33
+
34
+ Example payload from `request.env['omniauth.auth']` (real flow shape, anonymized):
35
+
36
+ ```json
37
+ {
38
+ "uid": "dbid:sample-account-id",
39
+ "info": {
40
+ "name": "Sample User"
41
+ },
42
+ "extra": {
43
+ "raw_info": {
44
+ "account_id": "dbid:sample-account-id",
45
+ "name": {
46
+ "given_name": "Sample",
47
+ "surname": "User",
48
+ "familiar_name": "Sample",
49
+ "display_name": "Sample User",
50
+ "abbreviated_name": "SU"
51
+ },
52
+ "email": "sample@example.test",
53
+ "email_verified": true,
54
+ "disabled": false,
55
+ "country": "IT",
56
+ "locale": "en",
57
+ "referral_link": "https://www.dropbox.com/referrals/AABsample",
58
+ "is_paired": false,
59
+ "account_type": {
60
+ ".tag": "basic"
61
+ },
62
+ "root_info": {
63
+ ".tag": "user",
64
+ "root_namespace_id": "123456",
65
+ "home_namespace_id": "123456"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ ```
33
71
 
34
- - `uid`: Dropbox `account_id`
35
- - `info[:name]`: Dropbox display name
36
- - `extra['raw_info']`: full response from `users/get_current_account`
72
+ Notes:
73
+ - `uid` is mapped from `raw_info.account_id`
74
+ - `info.name` is mapped from `raw_info.name.display_name`
75
+ - `extra.raw_info` is the full `users/get_current_account` response
37
76
 
38
77
  ## Development
39
78
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Dropbox2
5
- VERSION = '2.0.2'
5
+ VERSION = '2.0.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-dropbox2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Poli