Hello All,
I am doing a project in which 2 websites are involved site A and site B.
When user opens the site A he will be asked to enter his credentials, on submitting, site A will send the credentials to site B which will authenticate the user and on successful authentication will supply a sessionId and a UniqueUserID in a cookie. I have to grab this cookie and redirect the user to user to the site B, where he will be already logged in.
I tried, using Flask I was able to achieve the first part, but the part where I have to inject the cookie in to the browser of the user and redirect to the website, I was not able to do that.
[CODE]@app.route(‘/postmethod’, methods = [‘POST’])
def get_post_javascript_data():
loginCall()
return redirect(“https://xxx.com/monitoring_center”, code=302)
Not sure whether this is achievable or there is any other language that is more capableeasier in handling this kind of manipulation.
I used Flask because I am familiar with Python, if there is any other language please suggest, I will try to learn and try with that as well, and if someone can help with the above issue that will be great ? .
Thanks