This commit is contained in:
norohind committed 2021-10-27 21:08:58 +03:00
commit 318bbb8626
4 files changed
+344

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
import requests
from os import getenv
CLIENT_ID = getenv('client_id')
assert CLIENT_ID, "No client_id in env"
REDIRECT_URL = requests.utils.quote("http://127.0.0.1:9000/fdev-redirect")
AUTH_URL = 'https://auth.frontierstore.net/auth'
TOKEN_URL = 'https://auth.frontierstore.net/token'
PROPER_USER_AGENT = 'EDCD-a31-0.1'
REDIRECT_HTML_TEMPLATE = """
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="refresh" content="0; url={link}">
</head>
<body>
<a href="{link}">
You should be redirected shortly...
</a>
</body>
</html>
"""
ADMIN_USERS_TEMPLATE = """
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
{}
</body>
</html>
"""
ADMIN_USER_TEMPLATE = '<a href="{link}">{desc}</a>'