Skip to content

Commit 64dae6f

Browse files
committed
add all possible X API oauth2 scopes
1 parent 8bffcf5 commit 64dae6f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/auth/mod.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,29 @@ impl Auth {
156156
let (auth_url, _csrf_token) = self
157157
.client
158158
.authorize_url(CsrfToken::new_random)
159+
.add_scope(Scope::new("block.read".to_string()))
160+
.add_scope(Scope::new("bookmark.read".to_string()))
161+
.add_scope(Scope::new("dm.read".to_string()))
162+
.add_scope(Scope::new("follows.read".to_string()))
163+
.add_scope(Scope::new("like.read".to_string()))
164+
.add_scope(Scope::new("list.read".to_string()))
165+
.add_scope(Scope::new("mute.read".to_string()))
166+
.add_scope(Scope::new("space.read".to_string()))
159167
.add_scope(Scope::new("tweet.read".to_string()))
168+
.add_scope(Scope::new("timeline.read".to_string()))
160169
.add_scope(Scope::new("users.read".to_string()))
170+
.add_scope(Scope::new("block.write".to_string()))
171+
.add_scope(Scope::new("bookmark.write".to_string()))
172+
.add_scope(Scope::new("dm.write".to_string()))
173+
.add_scope(Scope::new("follows.write".to_string()))
174+
.add_scope(Scope::new("like.write".to_string()))
175+
.add_scope(Scope::new("list.write".to_string()))
176+
.add_scope(Scope::new("mute.write".to_string()))
177+
.add_scope(Scope::new("tweet.write".to_string()))
178+
.add_scope(Scope::new("tweet.moderate.write".to_string()))
179+
.add_scope(Scope::new("timeline.write".to_string()))
161180
.add_scope(Scope::new("offline.access".to_string()))
181+
.add_scope(Scope::new("media.write".to_string()))
162182
.set_pkce_challenge(code_challenge)
163183
.url();
164184

0 commit comments

Comments
 (0)