how to handle external system session and login?
up vote
0
down vote
favorite
We have a monolithic java backend application which exposes APIs to front-end application so our java application is a server to the callers.
This application calls APIs from an external system which requires login first to get a cookie then uses this cookie while calling other APIs from this external system, so our java application is a client to this external system.
We need to find a way to handle the state between our java application and the external system for example when our java application gets several concurrent requests from the front-end to call the external system and the cookie was not valid, only one login request should be initiated to the external system to get the cookie and caches it then other requests should use this cookie.
is there a popular solution for handling such a case?
java session concurrency session-cookies
add a comment |
up vote
0
down vote
favorite
We have a monolithic java backend application which exposes APIs to front-end application so our java application is a server to the callers.
This application calls APIs from an external system which requires login first to get a cookie then uses this cookie while calling other APIs from this external system, so our java application is a client to this external system.
We need to find a way to handle the state between our java application and the external system for example when our java application gets several concurrent requests from the front-end to call the external system and the cookie was not valid, only one login request should be initiated to the external system to get the cookie and caches it then other requests should use this cookie.
is there a popular solution for handling such a case?
java session concurrency session-cookies
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We have a monolithic java backend application which exposes APIs to front-end application so our java application is a server to the callers.
This application calls APIs from an external system which requires login first to get a cookie then uses this cookie while calling other APIs from this external system, so our java application is a client to this external system.
We need to find a way to handle the state between our java application and the external system for example when our java application gets several concurrent requests from the front-end to call the external system and the cookie was not valid, only one login request should be initiated to the external system to get the cookie and caches it then other requests should use this cookie.
is there a popular solution for handling such a case?
java session concurrency session-cookies
We have a monolithic java backend application which exposes APIs to front-end application so our java application is a server to the callers.
This application calls APIs from an external system which requires login first to get a cookie then uses this cookie while calling other APIs from this external system, so our java application is a client to this external system.
We need to find a way to handle the state between our java application and the external system for example when our java application gets several concurrent requests from the front-end to call the external system and the cookie was not valid, only one login request should be initiated to the external system to get the cookie and caches it then other requests should use this cookie.
is there a popular solution for handling such a case?
java session concurrency session-cookies
java session concurrency session-cookies
asked 2 days ago
Ramy Feteha
2,307197
2,307197
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372791%2fhow-to-handle-external-system-session-and-login%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown