I have a task where I need to redirect to an external url, which will then POST redirect back to the flask app with a body. It is related to AD FS authorization.
However, I want to hide in the url bar that I'm redirecting to the external url, basically a URL Masking.
Here is some code similar to my route:
@oauth2_bp.route('/callback', methods=['GET', 'POST'])
def oauth2():
    id_token = request.form.get('id_token')
    if id_token:
        ...
    else:
        ...
        return redirect(url)
Any ideas how I could accomplish this?
 
    