Skip to content

Commit

Permalink
Merge branch 'master' into feat/idp_email
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Jun 15, 2021
2 parents 90ee044 + ddd7ecd commit d22816d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fence/blueprints/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from cdislogging import get_logger

from cirrus import GoogleCloudManager
from fence.blueprints.login.redirect import validate_redirect
from fence.restful import RestfulApi
from fence.errors import NotFound
from fence.errors import Unauthorized
Expand Down Expand Up @@ -101,6 +102,9 @@ def delete(self):
def _link_google_account():
provided_redirect = flask.request.args.get("redirect")

# will raise UserError if invalid
validate_redirect(provided_redirect)

if not provided_redirect:
raise UserError({"error": "No redirect provided."})

Expand Down

0 comments on commit d22816d

Please sign in to comment.