You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue observed in Flask. Could be present in other frameworks too.
Basically, in my Flask login view, I use the argument called next, to let me do things like, login?next=something. So request.args is not empty. While using authomatic.login, I create a Werkzeug adapter by passing the flask request global and a response object. Now since this request object has the args dict set, it in turn results in the adapter.params being set.
In providers/oauth2.py's login function, PHASE 1 of Oauth2 flow happens only if self.params is not set ( which in turn is assigned from adapter.params ). Since it was set in this case, the if condition in l.no 383 is never entered and the query is not made at all.
I am not sure if there is any way to clear request.args ( short of reassigning it to an empty object, which I dont want to do as I dont know what side effects that would cause ). So effectively, I am unable to use authomatic in this scenario, which is likely to be quite common.
The text was updated successfully, but these errors were encountered:
Issue observed in Flask. Could be present in other frameworks too.
Basically, in my Flask login view, I use the argument called next, to let me do things like, login?next=something. So request.args is not empty. While using authomatic.login, I create a Werkzeug adapter by passing the flask
request
global and a response object. Now since this request object has the args dict set, it in turn results in the adapter.params being set.In providers/oauth2.py's login function, PHASE 1 of Oauth2 flow happens only if self.params is not set ( which in turn is assigned from adapter.params ). Since it was set in this case, the if condition in l.no 383 is never entered and the query is not made at all.
I am not sure if there is any way to clear request.args ( short of reassigning it to an empty object, which I dont want to do as I dont know what side effects that would cause ). So effectively, I am unable to use authomatic in this scenario, which is likely to be quite common.
The text was updated successfully, but these errors were encountered: