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
which struck me as odd. In fact, session.stop() is called only twice in the whole WebAPI code base, both times in this UpdateAccessTokenFilter class. Given UpdateAccessTokenFilter's place in the grand scheme of filters configured, the above lines seem to always be called upon login, and result in an immediate end of the session that actually just started... The rest of the user interactions seem to continue based on token authentication alone.
Code blame shows that the code itself and the surrounding parts are many years old.
Questions:
Would it be possible to find more details on why the session.stop() was added here?
Do we need sessions at all?
The text was updated successfully, but these errors were encountered:
@pieterlukasse , looks like the code you're referencing was added by me, but quite long ago and I'm far from this context now.
However, one thing to keep in mind is that there are number of auth methods available. My guess is that session is needed to handle OAuth and we don't need it with token.
@ganisimov thanks. So are you saying that session is essential for the OAuth part, but then, after that has succeeded and a token has been issued, all other interactions do not rely on or use the session in any way? It does seem to be what is happening now...
While reviewing the code in
UpdateAccessTokenFilter.java
I stumbled upon the following linesWebAPI/src/main/java/org/ohdsi/webapi/shiro/filters/UpdateAccessTokenFilter.java
Lines 118 to 122 in 093e1f1
which struck me as odd. In fact,
session.stop()
is called only twice in the whole WebAPI code base, both times in thisUpdateAccessTokenFilter
class. GivenUpdateAccessTokenFilter
's place in the grand scheme of filters configured, the above lines seem to always be called upon login, and result in an immediate end of the session that actually just started... The rest of the user interactions seem to continue based on token authentication alone.Code blame shows that the code itself and the surrounding parts are many years old.
Questions:
session.stop()
was added here?The text was updated successfully, but these errors were encountered: