Commit Graph

42 Commits

Author SHA1 Message Date
Mauro Mugnaini 098bfc9fef
Removed `permission` list from exchange method signature and improved it adding also `refresh-token` as requested token type and `offline_access` scope. Added also extra headers support for all the token methods. 2024-03-27 18:43:21 +01:00
Alfredo Oliviero 33a22f9448 rimosso header 2024-03-25 15:50:45 +01:00
Alfredo Oliviero 7c1597d479 Token exchange (#27099)
Header X-D4Science-Context in query exchange and refresh

- performQueryTokenWithPOST accepts also optional headers
- performURLEncodedPOSTSendData accepts also optional headers
- implemented queryExchangeToken
2024-03-22 15:43:59 +01:00
Mauro Mugnaini fea71c720c Added new `Catalogue-Manager` and `Catalogue-Moderator` roles to the enum (#23623) 2022-07-06 12:54:44 +02:00
Mauro Mugnaini bee9d59f22 Internally renamed variable `token` to `tokens` since the JSON helds more tah one token 2021-06-24 11:03:46 +02:00
Mauro Mugnaini 3c201dd6f0 Internally renamed variable `token` to `tokens` since the JSON helds more tah one token 2021-06-24 11:03:31 +02:00
Mauro Mugnaini 79c45245dd Transformed in unit test class 2021-05-06 17:52:08 +02:00
Mauro Mugnaini c5a9dca54c Now audience can be provided in both encoded and not encoded form (starts with "/" check is performed). Ugly test added. 2021-05-06 17:51:46 +02:00
Mauro Mugnaini 17e503c786 Added method to retrieve UMA token by using `clientId` and `clientSecret` in a specific `audience` (aka context, that must be in `URLEncoded` form) and Javadoc for all interesting methods 2021-05-06 17:15:10 +02:00
Mauro Mugnaini 7689b2238e Logs message changed from info to debug 2021-03-17 11:38:27 +01:00
Mauro Mugnaini 784896bda0 New "Data-Editor" role added 2021-03-17 11:37:44 +01:00
Mauro Mugnaini 2e0fb63ee6 Added convenience method to check Role existance by string 2021-01-27 19:35:13 +01:00
Mauro Mugnaini c75eb8af91 Simply ignoring resources that not start with slash ('/') and removed warn level log for it. 2021-01-27 17:09:15 +01:00
Mauro Mugnaini 35459bec6b Revised get avatar helper method 2021-01-20 00:58:02 +01:00
Mauro Mugnaini 8dc8f1d2a7 Added JTI value getter and essentials info dump in JWT 2021-01-20 00:57:49 +01:00
Mauro Mugnaini 200d47bb6a Site is now comparable. 2021-01-20 00:57:34 +01:00
Mauro Mugnaini 1fb2b2408e New checks for "invalid_grant" and "access_denied" error together with ""Token is not active"", "Invalid bearer token" and "not_authorized" descriptions 2021-01-11 16:04:18 +01:00
Mauro Mugnaini a8c38ee12e Disabled annoying log message 2021-01-11 16:03:02 +01:00
Mauro Mugnaini 38cb6ec47e Fixed typo in comment 2021-01-11 16:02:45 +01:00
Mauro Mugnaini 125f7d91df Added parsing of the response if is JSON and added specific exception to handle also this response 2020-12-21 18:00:08 +01:00
Mauro Mugnaini 22ad9b579c Removed test that fails 2020-11-24 12:47:06 +01:00
Mauro Mugnaini 41ffb26bcd Some logs added and 404 not found status support added 2020-09-04 18:31:46 +02:00
Mauro Mugnaini 9335a80b5a Added JUnit dependency and test 2020-09-04 18:31:12 +02:00
Mauro Mugnaini 9dd3f3843e Added helper method for "Bearer token" direct use 2020-08-18 12:40:53 +02:00
Mauro Mugnaini bb3728c421 Added some log message to better debug and remove the exception raise 2020-08-13 20:47:37 +02:00
Mauro Mugnaini 71a017c721 Reintroduced wrongly removed (renamed) only `getAsBearer` method (as deprecated) to avoid dependents projects changes 2020-08-13 18:27:53 +02:00
Mauro Mugnaini 7e035d24c2 Added avatar settings and retrieve helper method (#19726) 2020-08-12 20:12:21 +02:00
Mauro Mugnaini a80f07c759 Rationalized logs 2020-07-03 17:31:19 +02:00
Mauro Mugnaini 9aafc0d289 Using azp field (if present) also in logout 2020-06-30 13:57:41 +02:00
Mauro Mugnaini cb05b4a63b Authorized party field is used first refresshing the token if clientId is not provided 2020-06-30 12:47:30 +02:00
Mauro Mugnaini c8e2a30489 Added getter for authorized party field (azp) 2020-06-30 12:46:45 +02:00
Mauro Mugnaini a8f328cf56 "exp" field was wrongly returned as string instead of Long 2020-06-29 16:43:16 +02:00
Mauro Mugnaini 65e2882c2f Refactoring of common code and new mthods to get "refreshed" token 2020-06-29 16:22:51 +02:00
Mauro Mugnaini 10806e57cb Typo fixed 2020-06-26 18:15:05 +02:00
Mauro Mugnaini faf59e9d00 Now mapping is fault tollerant to support all kind of clients 2020-06-26 18:10:27 +02:00
Mauro Mugnaini db882bd0bf Request method declaration fixed and some logs added 2020-06-26 18:09:36 +02:00
Mauro Mugnaini 5e2cb4bc52 Renamed packages from com.nubisware.* to org.gcube.* 2020-06-18 10:56:20 +02:00
Mauro Mugnaini ea1dfa5fb2 Removed unnecessary resources 2020-06-04 16:47:33 +02:00
Mauro Mugnaini 003222ef6c Added quick test class 2020-06-04 16:47:23 +02:00
Mauro Mugnaini e359bfa00b Refactored by extracting oidc-keycloak-library project 2020-06-04 16:12:50 +02:00
Mauro Mugnaini c3f057e05c Beta version 2020-05-29 13:04:09 +02:00
Mauro Mugnaini 7ab87410ab Intial GIT commit 2020-05-21 15:47:28 +02:00