Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 4f1f3a2

Browse files
committed
Separate twitter app for OAuth
We can't have one twitter dev app for posting tweets and oauth, because there is no separation between permission levels. To post tweets we need write access which forces us to ask write access to user accounts (which we don't need). With this approach we have one app with read access to user's accounts and another app with write access for posting tweets.
1 parent 996d15b commit 4f1f3a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ TWITTER_CONSUMER_KEY
7676
TWITTER_CONSUMER_SECRET
7777
TWITTER_ACCESS_TOKEN
7878
TWITTER_ACCESS_TOKEN_SECRET
79+
80+
TWITTER_OAUTH_CONSUMER_KEY
81+
TWITTER_OAUTH_CONSUMER_SECRET
7982
```
8083

8184
## Contributors

config/initializers/multiauth.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
require "multi_auth"
22

33
MultiAuth.config("github", ENV.fetch("GITHUB_ID", ""), ENV.fetch("GITHUB_SECRET", ""))
4-
MultiAuth.config("twitter", ENV.fetch("TWITTER_CONSUMER_KEY", ""), ENV.fetch("TWITTER_CONSUMER_SECRET", ""))
4+
MultiAuth.config("twitter", ENV.fetch("TWITTER_OAUTH_CONSUMER_KEY", ""), ENV.fetch("TWITTER_OAUTH_CONSUMER_SECRET", ""))

0 commit comments

Comments
 (0)