Skip to content

Commit

Permalink
Fixed error on /metadata endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Apr 25, 2024
1 parent 348ab3d commit 92cae79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions orcidflask/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import request, url_for, redirect, session, render_template
from flask import request, url_for, redirect, session, render_template, make_response
from orcidflask import app, db
from orcidflask.models import Token
from saml_utils import *
Expand Down Expand Up @@ -86,8 +86,7 @@ def attrs():

@app.route('/metadata/')
def metadata():
req = prepare_flask_request(request)
auth = init_saml_auth(req)
auth, auth_req = init_saml_auth(request)
settings = auth.get_settings()
metadata = settings.get_sp_metadata()
errors = settings.validate_metadata(metadata)
Expand Down

0 comments on commit 92cae79

Please sign in to comment.