Commit Graph

32 Commits

Author SHA1 Message Date
Massimiliano Assante 0ef38bfbcd #21503 Update threadlocal-vars-cleaner to support AccessTokenProvider 2021-05-25 16:29:28 +02:00
Massimiliano Assante 10313013e8 just updated the message session is null 2021-05-03 12:30:47 +02:00
Mauro Mugnaini 99b38ef4b7 Wrong extra return if session is null at check 2021-04-30 08:27:46 +02:00
Mauro Mugnaini 760448c7db Restored session existance check before OIDC/UMA ticket related checks 2021-04-29 19:18:52 +02:00
Mauro Mugnaini eb383671aa Extracted the UMA issuing code for logged user from the Valve in the `threadlocal-vars-cleaner` project to be used also after the login process for UMA issue in the context, since the Valve has already finished its work at that moment. (#20591) 2021-03-17 19:09:28 +01:00
Massimiliano Assante 6e67b8dae2 lowered the level of log "OIDC token is null in cache proxy" 2021-02-10 15:56:46 +01:00
Mauro Mugnaini 07c8a1219e The UMA refresh token flow is skipped by the specific setting (constant in the class) and a new token is requested if the old is expired. 2021-01-22 14:59:19 +01:00
Mauro Mugnaini 8e28d139b5 Revised implementation that rely completely on cache proxy and ignore the several session objects (with same session ID) that are involved in different calls and threads. In addition to avoid also multiple thread collision that refreshes/requests the same object several times at each call, a specific mutex (per user) has been put in place. 2021-01-20 00:56:27 +01:00
Mauro Mugnaini f5479d8f58 Fixed wrong log messages 2021-01-19 18:00:39 +01:00
Mauro Mugnaini fc18dda68e Remove the user of the session to store objects and rely on cache proxy only adding a mutex to avoid concurrency problems 2021-01-19 17:54:06 +01:00
Mauro Mugnaini 1a0f9b5086 A lot of logs added and rationalized loop 2021-01-19 15:04:31 +01:00
Mauro Mugnaini 9a25509add Moved out synch from method to session object and added checks for response messages from Keycloak. Added also redirection to logout URI in case of revoked or invalid OIDC token. 2021-01-11 16:08:53 +01:00
Mauro Mugnaini b110e21b3f Rewrote the flow according to last tests and strange LR behavior in session management 2020-12-21 18:14:00 +01:00
Mauro Mugnaini fa407f471a Forced refresh of access token when current scope changes 2020-12-16 15:53:26 +01:00
Mauro Mugnaini 6b86a0700b Changed according to renamed classes method names 2020-07-03 18:45:41 +02:00
Mauro Mugnaini be0860d928 Fixed wrong token put in cache after refresh. Rationalized logs. 2020-07-03 18:38:58 +02:00
Mauro Mugnaini 3f965a9143 Implemented the token refresh on expired access-token validity 2020-07-01 19:42:10 +02:00
Massimiliano Assante 2b5733d6ff fixed wrong method name call 2020-06-24 12:02:48 +02:00
Mauro Mugnaini b156114d3d Changed the proxy class name and renamed packages from com.nubisware.* to org.gcube.* 2020-06-18 12:32:03 +02:00
Mauro Mugnaini ee7a088be2 Beta version 2020-05-29 13:06:55 +02:00
Massimiliano Assante efdc5eb4b1 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@183892 82a268e6-3cf1-43bd-a215-b396298e98cf 2020-03-26 08:52:37 +00:00
Massimiliano Assante 74dd7b1637 added method to generate token only if it doesnt exists
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134277 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 10:19:01 +00:00
Massimiliano Assante 7dca141d2f git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134209 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-11-15 16:42:45 +00:00
Massimiliano Assante dad4c8beb0 removed ASL Session, ported to gCube Client Context
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134194 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-15 14:25:11 +00:00
Massimiliano Assante 056e9adfca removed ASL Session, ported to gCube Client Context
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134185 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-15 13:46:42 +00:00
Massimiliano Assante 800f06bb34 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134128 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-11-14 16:32:21 +00:00
Massimiliano Assante e1dbad90dd added client scope injection
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134101 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-11 17:36:09 +00:00
Massimiliano Assante f7d01c61af updated to read the header request params for context and set the token and scope in the thread local
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@134040 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-10 14:10:01 +00:00
Massimiliano Assante 7d482444cc ported to tomcat catalina 7
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@129332 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-23 10:14:31 +00:00
Massimiliano Assante 082332da5d git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@128410 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-05-02 16:34:19 +00:00
Massimiliano Assante 89be62e437 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@128403 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-05-02 14:52:47 +00:00
Massimiliano Assante e25e3e88c1 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/threadlocal-vars-cleaner@128180 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-04-20 10:54:16 +00:00