mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-23 04:18:11 +00:00
Adding an SSO endpoint to see what I can see.
Adding some additional configuration settings into the default configuration. Adding the ivy_file table to track what information was loaded from ivy.
This commit is contained in:
parent
f0132df1e5
commit
ea0cc682e3
@ -117,6 +117,17 @@ def send_invitation():
|
||||
base_href=BASE_HREF
|
||||
)
|
||||
|
||||
@app.route('/sso')
|
||||
def sso():
|
||||
response = ""
|
||||
response += "<h1>Headers</h1>"
|
||||
response += "<ul>"
|
||||
for k, v in request.headers:
|
||||
response += "<li><b>%s</b> %s</li>\n" % (k, v)
|
||||
response += "<h1>Environment</h1>"
|
||||
for k, v in request.environ:
|
||||
response += "<li><b>%s</b> %s</li>\n" % (k, v)
|
||||
return response
|
||||
|
||||
# Access tokens
|
||||
@app.cli.command()
|
||||
|
@ -1,7 +1,5 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
from google.auth.credentials import Credentials
|
||||
from google.cloud import firestore
|
||||
from google.oauth2 import service_account
|
||||
|
||||
|
@ -62,4 +62,8 @@ GLOBUS_DTN_ENDPOINT = environ.get('GLOBUS_DTN_ENDPOINT')
|
||||
# Twilio SMS Messages
|
||||
TWILIO_SID = environ.get('TWILIO_SID')
|
||||
TWILIO_TOKEN = environ.get('TWILIO_TOKEN')
|
||||
TWILIO_NUMBER = environ.get('TWILIO_NUMBER')
|
||||
|
||||
# Firestore configuration
|
||||
FIRESTORE_JSON = environ.get('FIRESTORE_JSON')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user