omniauth-boletosimples 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +24 -7
- data/lib/omniauth/boletosimples/version.rb +1 -1
- data/lib/omniauth/strategies/boletosimples.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d2277bc4a073c872f68f6c851c538c79e39b18
|
4
|
+
data.tar.gz: 624725b1d81e5ff094bcff8873b4ec65ca9ed8af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e86c24ea989775858915598e23ea3f0799c4eb1365f488742043de87b175a405cb4ed7ce9a32f7a2a07c2861a057024a786a7a999fd1df1afe61d01eb79ee49c
|
7
|
+
data.tar.gz: 946bd51e5631547c896544613cbaffaf2bedd27bbd410ce1d03e076b7352557c060171e1d7474f33cc257aa9fda976834a0cce58a1bba9d1bea4bcbc1eb8b4b8
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Here's a quick example, adding the middleware to a Rails app in `config/initiali
|
|
22
22
|
|
23
23
|
```ruby
|
24
24
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
25
|
-
provider :boletosimples, ENV['APP_ID'], ENV['APP_TOKEN'],
|
25
|
+
provider :boletosimples, ENV['APP_ID'], ENV['APP_TOKEN'], environment: :sandbox, scope: "profile email", user_agent: 'Your App (yourapp@example.com)'
|
26
26
|
end
|
27
27
|
```
|
28
28
|
|
@@ -34,9 +34,13 @@ The possible attributes to be returned at the moment are:
|
|
34
34
|
|
35
35
|
```ruby
|
36
36
|
info['person_type']
|
37
|
-
info['
|
37
|
+
info['first_name']
|
38
|
+
info['middle_name']
|
39
|
+
info['last_name']
|
40
|
+
info['full_name']
|
41
|
+
info['date_of_birth']
|
38
42
|
info['email']
|
39
|
-
info['
|
43
|
+
info['cpf']
|
40
44
|
|
41
45
|
extra['address_street_name']
|
42
46
|
extra['address_number']
|
@@ -48,12 +52,15 @@ extra['address_postal_code']
|
|
48
52
|
extra['phone_number']
|
49
53
|
extra['banking_bank_number']
|
50
54
|
extra['banking_agency_number']
|
55
|
+
extra['banking_agency_digit']
|
51
56
|
extra['banking_account_number']
|
52
57
|
extra['banking_account_digit']
|
53
58
|
extra['banking_person_type']
|
54
59
|
extra['banking_person_name']
|
55
60
|
extra['banking_cnpj_cpf']
|
56
|
-
extra['
|
61
|
+
extra['business_name']
|
62
|
+
extra['business_cnpj']
|
63
|
+
|
57
64
|
```
|
58
65
|
|
59
66
|
The actual set of attributes returned depends on the scopes set. The currently available scopes are:
|
@@ -65,6 +72,7 @@ email
|
|
65
72
|
phone
|
66
73
|
address
|
67
74
|
banking
|
75
|
+
business
|
68
76
|
write
|
69
77
|
read
|
70
78
|
webhook
|
@@ -82,9 +90,13 @@ provider: boletosimples
|
|
82
90
|
uid: 1
|
83
91
|
info:
|
84
92
|
person_type: 'individual'
|
85
|
-
|
93
|
+
first_name: 'Henry Renato'
|
94
|
+
middle_name: 'Leonardo'
|
95
|
+
last_name: 'Barros'
|
96
|
+
full_name: 'Henry Renato Leonardo Barros'
|
97
|
+
date_of_birth: '1987-04-01'
|
86
98
|
email: 'henry@example.com'
|
87
|
-
|
99
|
+
cpf: '139.586.432-21'
|
88
100
|
credentials:
|
89
101
|
token: <token>
|
90
102
|
refresh_token: <refresh token>
|
@@ -101,18 +113,23 @@ extra:
|
|
101
113
|
phone_number: '6336151015'
|
102
114
|
banking_bank_number: '237'
|
103
115
|
banking_agency_number: '3290'
|
116
|
+
banking_agency_digit: '1'
|
104
117
|
banking_account_number: '1028'
|
105
118
|
banking_account_digit: '9'
|
106
119
|
banking_person_type: 'individual'
|
107
120
|
banking_person_name: 'Henry Renato Leonardo Barros'
|
108
121
|
banking_cnpj_cpf: '139.586.432-21'
|
109
|
-
|
122
|
+
business_name: 'Boleto Simples Cobranças Ltda'
|
123
|
+
business_cnpj: '05.813.794/0001-26'
|
110
124
|
```
|
111
125
|
|
112
126
|
## Issues
|
113
127
|
|
114
128
|
If you have problems, please create a [Github Issue](https://github.com/BoletoSimples/omniauth-boletosimples/issues).
|
115
129
|
|
130
|
+
## Sample Code
|
131
|
+
Check our [Sample Code](https://github.com/BoletoSimples/login-with-boletosimples-demo-rails)
|
132
|
+
|
116
133
|
## Contributing
|
117
134
|
|
118
135
|
Please see [CONTRIBUTING.md](https://github.com/BoletoSimples/omniauth-boletosimples/blob/master/CONTRIBUTING.md) for details.
|