Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

Commit 2eb4bc6

Browse files
committed
update README
1 parent 08517f5 commit 2eb4bc6

File tree

1 file changed

+39
-43
lines changed

1 file changed

+39
-43
lines changed

README.md

Lines changed: 39 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Next, tell OmniAuth about this provider. For a Rails app, your `config/initializ
3131

3232
```ruby
3333
Rails.application.config.middleware.use OmniAuth::Builder do
34-
zoom_scopes = %i[user:read meeting:read meeting:write]
34+
zoom_scopes = %i[user_profile meeting:write]
3535
provider :zoom, zoom_client_id, zoom_client_secret, :scope => zoom_scopes.join(',')
3636
end
3737
```
@@ -44,49 +44,45 @@ The auth hash `request.env['omniauth.auth']` would look like this:
4444

4545
```js
4646
{
47-
"result": {
48-
"provider": "zoom",
49-
"uid": "KdYKjnimT4KPd8FFgQt9FQ",
50-
"info": {},
51-
"credentials": {
52-
"token": "ACCESS_TOKEN",
53-
"refresh_token": "REFRESH_TOKEN",
54-
"expires_at": 1594035991,
55-
"expires": true
56-
},
57-
"extra": {
58-
"raw_info": {
59-
"id": "KdYKjnimT4KPd8FFgQt9FQ",
60-
"first_name": "Jane",
61-
"last_name": "Dev",
62-
"email": "jane.dev@email.com",
63-
"type": 2,
64-
"role_name": "Owner",
65-
"pmi": 1234567890,
66-
"use_pmi": false,
67-
"vanity_url": "https://janedevinc.zoom.us/my/janedev",
68-
"personal_meeting_url": "https://janedevinc.zoom.us/j/1234567890",
69-
"timezone": "America/Denver",
70-
"verified": 1,
71-
"dept": "",
72-
"created_at": "2019-04-05T15:24:32Z",
73-
"last_login_time": "2019-12-16T18:02:48Z",
74-
"last_client_version": "4.6.12611.1124(mac)",
75-
"pic_url": "https://janedev.zoom.us/p/KdYKjnimFR5Td8KKdQt9FQ/19f6430f-ca72-4154-8998-ede6be4542c7-837",
76-
"host_key": "533895",
77-
"jid": "kdykjnimt4kpd8kkdqt9fq@xmpp.zoom.us",
78-
"group_ids": [],
79-
"im_group_ids": [
80-
"3NXCD9VFTCOUH8LD-QciGw"
81-
],
82-
"account_id": "gVcjZnYYRLDbb_MfgHuaxg",
83-
"language": "en-US",
84-
"phone_country": "US",
85-
"phone_number": "+1 1234567891",
86-
"status": "active"
87-
}
88-
}
47+
"provider": "zoom",
48+
"uid": "KdYKjnimT4KPd8FFgQt9FQ",
49+
"info": {},
50+
"credentials": {
51+
"token": "ACCESS_TOKEN",
52+
"refresh_token": "REFRESH_TOKEN",
53+
"expires_at": 1594035991,
54+
"expires": true
55+
},
56+
"extra": {
57+
"raw_info": {
58+
"id": "KdYKjnimT4KPd8FFgQt9FQ",
59+
"first_name": "Jane",
60+
"last_name": "Dev",
61+
"email": "jane.dev@email.com",
62+
"type": 2,
63+
"role_name": "Owner",
64+
"pmi": 1234567890,
65+
"use_pmi": false,
66+
"vanity_url": "https://janedevinc.zoom.us/my/janedev",
67+
"personal_meeting_url": "https://janedevinc.zoom.us/j/1234567890",
68+
"timezone": "America/Denver",
69+
"verified": 1,
70+
"dept": "",
71+
"created_at": "2019-04-05T15:24:32Z",
72+
"last_login_time": "2019-12-16T18:02:48Z",
73+
"last_client_version": "4.6.12611.1124(mac)",
74+
"pic_url": "https://janedev.zoom.us/p/KdYKjnimFR5Td8KKdQt9FQ/19f6430f-ca72-4154-8998-ede6be4542c7-837",
75+
"host_key": "533895",
76+
"jid": "kdykjnimt4kpd8kkdqt9fq@xmpp.zoom.us",
77+
"group_ids": [],
78+
"im_group_ids": ["3NXCD9VFTCOUH8LD-QciGw"],
79+
"account_id": "gVcjZnYYRLDbb_MfgHuaxg",
80+
"language": "en-US",
81+
"phone_country": "US",
82+
"phone_number": "+1 1234567891",
83+
"status": "active"
8984
}
85+
}
9086
}
9187
```
9288

0 commit comments

Comments
 (0)