Spaces:
Sleeping
Sleeping
Sean Pedrick-Case
commited on
Removed some placeholder values
Browse files- tools/auth.py +4 -4
tools/auth.py
CHANGED
@@ -6,13 +6,13 @@ import hashlib
|
|
6 |
import base64
|
7 |
from tools.helper_functions import get_or_create_env_var
|
8 |
|
9 |
-
client_id = get_or_create_env_var('AWS_CLIENT_ID', '
|
10 |
print(f'The value of AWS_CLIENT_ID is {client_id}')
|
11 |
|
12 |
-
client_secret = get_or_create_env_var('AWS_CLIENT_SECRET', '
|
13 |
print(f'The value of AWS_CLIENT_SECRET is {client_secret}')
|
14 |
|
15 |
-
user_pool_id = get_or_create_env_var('AWS_USER_POOL_ID', '
|
16 |
print(f'The value of AWS_USER_POOL_ID is {user_pool_id}')
|
17 |
|
18 |
def calculate_secret_hash(client_id, client_secret, username):
|
@@ -77,4 +77,4 @@ def authenticate_user(username:str, password:str, user_pool_id:str=user_pool_id,
|
|
77 |
return False
|
78 |
except Exception as e:
|
79 |
print(f"An error occurred: {e}")
|
80 |
-
return False
|
|
|
6 |
import base64
|
7 |
from tools.helper_functions import get_or_create_env_var
|
8 |
|
9 |
+
client_id = get_or_create_env_var('AWS_CLIENT_ID', '')
|
10 |
print(f'The value of AWS_CLIENT_ID is {client_id}')
|
11 |
|
12 |
+
client_secret = get_or_create_env_var('AWS_CLIENT_SECRET', '')
|
13 |
print(f'The value of AWS_CLIENT_SECRET is {client_secret}')
|
14 |
|
15 |
+
user_pool_id = get_or_create_env_var('AWS_USER_POOL_ID', '')
|
16 |
print(f'The value of AWS_USER_POOL_ID is {user_pool_id}')
|
17 |
|
18 |
def calculate_secret_hash(client_id, client_secret, username):
|
|
|
77 |
return False
|
78 |
except Exception as e:
|
79 |
print(f"An error occurred: {e}")
|
80 |
+
return False
|