Commit Graph

39 Commits

Author SHA1 Message Date
thec0sm0s
f93d5c059b Implement explicit methods to save and get OAuth2 token and secrets 2020-08-04 21:35:37 +05:30
thec0sm0s
59d944aa0c Use separate _fetch_token method 2020-07-25 22:52:34 +05:30
thec0sm0s
164791436e Move attributes from base class to actual client 2020-07-24 23:45:37 +05:30
thec0sm0s
d703937da5 Make client secret and bot tokens protected attributes so that someone doesn't spills their secrets accidentally 2020-07-24 23:43:29 +05:30
thec0sm0s
5d84158502 ✔ Add low level request method for bot scope resources 2020-06-27 15:40:53 +05:30
thec0sm0s
f970eb94bb Add user_id property 2020-05-15 18:13:42 +05:30
thec0sm0s
318e2318b8 Add import to Integration 2020-05-15 18:08:27 +05:30
thec0sm0s
224d0570f5 Add DISCORD_USER_ID in SESSION_KEYS. Try removing user from cache if exists 2020-05-14 21:01:10 +05:30
thec0sm0s
7338c5b269 Implement users cache. Set cachetools.LFUCache to use by default 2020-05-12 21:29:02 +05:30
thec0sm0s
94d0c536c5 Check for session in Flask session 2020-05-11 21:06:26 +05:30
thec0sm0s
4d278557aa Typo fix 2020-05-10 19:54:51 +05:30
thec0sm0s
accc65a8bc Typo fix 2020-05-10 19:54:09 +05:30
thec0sm0s
feb8ea3f0a Check if application is being rate limited and raise exception 2020-05-10 18:11:50 +05:30
thec0sm0s
044104a171 One Liner style? 2020-05-10 17:52:07 +05:30
thec0sm0s
78e21c4702 Internally handle JSONDecodeError 2020-05-10 17:47:31 +05:30
thec0sm0s
fbf341a3ec Modify request method so that it can be used for standard requests as well 2020-05-10 17:20:20 +05:30
thecosmos
386b0655c3 Don't use bot token 2020-04-14 16:31:23 +05:30
thecosmos
95aa57a699 Try adding user to guild method [broken] 2020-04-14 15:57:35 +05:30
thecosmos
558f2875b0 Remove get_json method 2020-04-14 13:52:09 +05:30
thecosmos
a0674e80dc Fix docs 2020-04-14 09:45:31 +05:30
thecosmos
030333987f Use and implement generalized request method rather than just get. 2020-04-14 09:21:36 +05:30
thecosmos
03952f66f9 Prefix all configs with DISCORD_ to prevent un intended user override 2020-04-14 08:46:55 +05:30
thecosmos
835733965e Bug fix 2019-05-26 16:16:59 +05:30
thecosmos
9d5cbcdd77 Use caps keys to store discord secrets in flask session object 2019-05-26 10:56:15 +05:30
thecosmos
1b2932f1b0 Use configs from Flask app instance 2019-05-26 10:52:24 +05:30
thecosmos
def30d1348 Docs fix 2019-05-23 00:09:23 +05:30
thecosmos
dffff2d672 Docs fix 2019-05-22 11:16:52 +05:30
thecosmos
b0c659dd2e Docs changes 2019-05-22 11:13:46 +05:30
thecosmos
2ceb308fae Add Exceptions 2019-05-21 01:00:29 +05:30
thecosmos
c7d0433ea9 Caching user object to flask session was bad idea 2019-05-21 00:29:48 +05:30
thecosmos
71404b1d93 Cache discord User object to flask session 2019-05-20 23:49:13 +05:30
thecosmos
93fafcc9d1 Add revoke method to purge discord session data 2019-05-20 09:45:48 +05:30
thecosmos
f91bdca7d9 Prefixed session data with discord to allow users to have their own other OAuth sessions 2019-05-19 17:45:04 +05:30
thecosmos
bf49390a4c Docs fixes 2019-05-09 16:25:54 +05:30
thecosmos
ce488393e6 Documentation 2019-05-08 15:46:24 +05:30
thecosmos
30e66676b4 Minor change 2019-05-07 22:10:20 +05:30
thecosmos
cda51baf67 get method shortcut 2019-05-07 21:55:04 +05:30
thecosmos
c0d4742dcf try getting oauth2 token from session 2019-05-07 21:50:28 +05:30
thecosmos
cc31b2a84e Model changes 2019-05-07 10:36:59 +05:30