From 0265db7146a923a5c7850180911ab8077b675059 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Thu, 21 May 2020 16:02:45 -0400 Subject: [PATCH] adding an /sso endpoint for testing. --- crc/api/user.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crc/api/user.py b/crc/api/user.py index 74a11841..e7688dfc 100644 --- a/crc/api/user.py +++ b/crc/api/user.py @@ -42,6 +42,10 @@ def sso_login(user_info): # TODO: Get redirect URL from Shibboleth request header _handle_login(user_info, redirect) +@app.route('/sso') +def index(): + return str(request.headers) + def _handle_login(user_info, redirect_url=app.config['FRONTEND_AUTH_CALLBACK']): """On successful login, adds user to database if the user is not already in the system,