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:
Dan Funk 2020-09-23 14:43:24 -04:00
parent f0132df1e5
commit ea0cc682e3
3 changed files with 15 additions and 2 deletions

View File

@ -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()

View File

@ -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

View File

@ -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')