Commit Graph

18 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 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 35459bec6b Revised get avatar helper method 2021-01-20 00:58:02 +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 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 41ffb26bcd Some logs added and 404 not found status support added 2020-09-04 18:31:46 +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 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 65e2882c2f Refactoring of common code and new mthods to get "refreshed" token 2020-06-29 16:22:51 +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