File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ class Notion < OmniAuth::Strategies::OAuth2
22
22
} ,
23
23
}
24
24
25
+ option :authorize_params , {
26
+ owner : 'user' ,
27
+ }
28
+
25
29
# These are called after authentication has succeeded. If
26
30
# possible, you should try to set the UID without making
27
31
# additional calls (if the user id is returned with the token
@@ -32,8 +36,10 @@ class Notion < OmniAuth::Strategies::OAuth2
32
36
# https://developers.notion.com/docs/authorization#exchanging-the-grant-for-an-access-token
33
37
info do
34
38
{
39
+ workspace_id : raw_info [ 'workspace_id' ] ,
35
40
workspace_name : raw_info [ 'workspace_name' ] ,
36
41
workspace_icon : raw_info [ 'workspace_icon' ] ,
42
+ owner : raw_info [ 'owner' ] ,
37
43
bot_id : raw_info [ 'bot_id' ]
38
44
}
39
45
end
Original file line number Diff line number Diff line change 2
2
3
3
module Omniauth
4
4
module Notion
5
- VERSION = "0.0.2 "
5
+ VERSION = "0.0.3 "
6
6
end
7
7
end
You can’t perform that action at this time.
0 commit comments