Похожие чаты

@Dburyak " First one is http session. It is not related

to your "user" business logic entity, instead it is more lower level concept, it is like transport level session concept. Similar to tcp connection.
"
Yeah. Clear. I am using JDBC session store and there's a fine line between business logics and sessions. I am aware of the theoritical concepts of implementing multiple user authentication. My problem is implementation in Spring Boot (Framework specific problem). Spring Boot 1.x had http session manager which was easier (my opinion). There was a session alias after a successful authentication ```(?_s=x, where x is an unsigned int)```. With Spring Boot 2.x, I am lost. I don't understand the documentation on this particular concept. Note that, I am referring to multiple user login on the same browser.

Recently, I have a system which supports just one active user per browser. Before you log in, it will ask you if you intend to continue with the active user or you intend to begin a fresh session.

I have filter which intercepts all GET requests to /oauth/authorize. OAuth2 authentication. If there is an active session on the browser, the user will be asked if he wishes to continue with the session or login. If he continues with the session and authorization code will be granted. Otherwise, log in, authorization granted.

Any assistance or suggestion plz.

1 ответов

10 просмотров

Ok, now I see where's the problem. Unfortunately, I can't help you, haven't ever implemented this scenario. Brief googling led me to this: https://docs.spring.io/spring-session/docs/2.0.0.M4/reference/html5/guides/java-users.html But it describes the same technique you showed for 1.x. Haven't worked with spring boot 2.x, unfortunately. If I were you, I would simply check sources of spring session of the particular version.

Похожие вопросы

Обсуждают сегодня

Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Мужики и девушки, привет) в Вelphi xe7 в настройках во вкладке "Editor Options" далее " Color" есть список: "Elements", открыв который мы можем настраивать отображение разных...
Kraszx
14
VIP-392 [zkSync] New native USDC market in the Core pool Summary If passed, following the Community proposal “Support native USDC on Venus Core Pool of ZKSync Era” and the a...
Venus Announcements
1
is that okay?
Samurai 🇯🇵
21
Добрый вечер. Есть вопрос, а может и предложение. Был у меня диалог в другой группе о делфи и я задался вопросом: "А нельзя ли в делфи цвет //коментария и {комментария} сде...
Kraszx
24
How about the project bro Likes the community not that active ?
🅿️abby_FX
19
Я вот подумал. SSE выполняет операции максимум с 64-битной точностью. А FPU - всегда с 80-битной. Разве не должно быть FPU точнее тогда?
The Bird of Hermes
13
Guys, Donald Trump or Kamala Harris? It does not matter for Bitcoin in the long run!! 2020 Election: After Joe Biden's victory in November 2020, Bitcoin steadily rose from...
Sabah Shabu
3
как быть с принтером? такой подход прокатит?
zamtmn
12
Мдя, прикол, боевая сборка запускается (именно под отладчиком) после F9 примерно полторы минуты (97 секунд если быть точным). Начал копать - проблема детектится сразу - зависа...
Александр (Rouse_) Багель
38
Карта сайта