config/emacs: I DID IT HHAAHAHUDHUWAHFUIOWAHGUIO
This commit is contained in:
parent
2095df4129
commit
dead68f5da
2 changed files with 1 additions and 10 deletions
|
@ -34,14 +34,6 @@ def get_client_secret(account):
|
||||||
return re.search(rb"client_secret: (.*)", cmd, flags=0).group(1)
|
return re.search(rb"client_secret: (.*)", cmd, flags=0).group(1)
|
||||||
|
|
||||||
|
|
||||||
def get_client_token(account):
|
|
||||||
cmd = check_output("pass " + account, shell=True)
|
|
||||||
|
|
||||||
output = re.search("client_token: (.*)", cmd.decode(), flags=0).group(1)
|
|
||||||
|
|
||||||
return output
|
|
||||||
|
|
||||||
|
|
||||||
def get_client_refresh_token(account):
|
def get_client_refresh_token(account):
|
||||||
cmd = check_output("pass " + account, shell=True)
|
cmd = check_output("pass " + account, shell=True)
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ remoteport = 993
|
||||||
auth_mechanisms = XOAUTH2
|
auth_mechanisms = XOAUTH2
|
||||||
oauth2_request_url = https://login.microsoftonline.com/common/oauth2/v2.0/token
|
oauth2_request_url = https://login.microsoftonline.com/common/oauth2/v2.0/token
|
||||||
oauth2_client_id = 9e5f94bc-e8a4-4e73-b8be-63364c29d753
|
oauth2_client_id = 9e5f94bc-e8a4-4e73-b8be-63364c29d753
|
||||||
# oauth2_client_secret = ""
|
oauth2_client_secret =
|
||||||
oauth2_refresh_token_eval = get_client_refresh_token("Microsoft")
|
oauth2_refresh_token_eval = get_client_refresh_token("Microsoft")
|
||||||
oauth2_access_token_eval = get_client_token("Microsoft")
|
|
||||||
folderfilter = lambda folder: not folder.startswith('Calendar') and not folder.startswith('Contacts')
|
folderfilter = lambda folder: not folder.startswith('Calendar') and not folder.startswith('Contacts')
|
Loading…
Reference in a new issue