Ankush Menat
de9ac89748
style: re-format with ruff
2024-02-05 18:53:33 +05:30
phot0n
88d4d5e10d
chore: minor cleanup - removed unnecessary branches and comments
2023-01-15 21:02:21 +05:30
phot0n
481d72c0ae
fix: only pull from email accoutns which have token
...
* removed unnecessary after_save client hook from email account
* renamed check_active_token -> has_token (no need to refresh the access token)
* removed oauthentication error from email oauth - now just a simple validation error
2023-01-06 13:07:13 +05:30
phot0n
231d90cb40
chore: handle get requests via frappe.whitelist decorator
2022-12-29 18:44:53 +05:30
phot0n
f0a17d7adb
fix: make connected app work with email account
...
* removed (now) unnecessary things from oauth class
* simplified get_active_token in connected_app
* removed gmail banner from email account docs
2022-12-28 14:58:19 +05:30
Revant Nandgaonkar
f79185d79c
feat: use Connected App for OAuth based Email Account
2022-12-28 14:51:10 +05:30
Sagar Vora
838a52328c
fix: hardcode doctype in google oauth callback
2022-11-12 23:51:15 +05:30
phot0n
f679dc3fdd
fix(security): restrict the god google callback
...
the common google callback can be used to trigger any method in the whole codebase
restrict it by only allowing domain specific callback method and raise
an error if the domain is not found
2022-07-17 21:37:21 +05:30
phot0n
8edae2ce09
fix: encrypt access_token when setting in db after refreshing access_token
2022-07-17 21:35:06 +05:30
phot0n
9090b0fe3a
chore: remove unnecessary failure_query_param for email oauth
2022-07-13 12:41:32 +05:30
phot0n
01a1860491
fix(ux): better ux for successful oauthorization
2022-07-13 12:05:46 +05:30
phot0n
a826f4cc53
fix(ux): consistent field names for ssl and server
...
* keep server and port together
2022-07-13 12:05:46 +05:30
phot0n
2b7bd4eef0
minor(ux): select field for alternating between basic and oauth authentication
2022-07-13 12:05:46 +05:30
phot0n
2907571098
minor: encrypt email oauth refresh and access token
2022-07-13 12:05:46 +05:30
phot0n
5bf26819a8
fix: better/reduced exception handling for email oauth
...
Since the places where connection methods are called already
have a lot of exception handling, we can just raise and let them
handle all the probable cases.
2022-07-13 12:05:46 +05:30
phot0n
8b38fcb438
chore: move getting site address to GoogleOAuth
2022-07-13 12:05:46 +05:30
phot0n
431afaeee4
fix: remove commit
...
* chore: raise not implemented error for services other than gmail
* chore: use fstring for _auth_string property
2022-07-13 12:05:46 +05:30
phot0n
484758d6e0
chore: remove additional/unnecessary set_value calls
2022-07-13 12:05:46 +05:30
phot0n
834410a2a5
fix: dont update modified timestamp on generating and refreshing tokens
2022-07-13 12:05:46 +05:30
phot0n
221423c718
chore: added docstrings
2022-07-13 12:05:46 +05:30
phot0n
e58afca3f6
minor: simplify authorize_google_access
2022-07-13 12:05:46 +05:30
phot0n
de6f1326f7
minor: move oauth access functions from email_account
2022-07-13 12:05:46 +05:30
phot0n
67730b7b26
chore: fix sider
2022-07-13 12:05:46 +05:30
phot0n
064ffef8b9
minor: throw exception if refresh_token is not present
2022-07-13 12:05:46 +05:30
phot0n
06c5a7226d
chore: fix linter
2022-07-13 12:05:46 +05:30
phot0n
ebc5861210
feat: generic OAuth for email
2022-07-13 12:05:46 +05:30