Feature hawkbit uaa extension (#317)
* use UserPrincipal to determine tenant at runtime Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com> * add hawkbit-uaa extension Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com> * adapt WithSpringAuthorityRule with UserPrincipal for determine tenant Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com> * fix String principal in DDI download resource Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com> * merge the email to the UserPrincipal from the master manually Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com> * Fixed some grammar issues and typos Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
This commit is contained in:
@@ -32,8 +32,8 @@ public interface DdiDlArtifactStoreControllerRestApi {
|
||||
* name of the client
|
||||
* @param fileName
|
||||
* to search for
|
||||
* @param targetid
|
||||
* of authenticated target
|
||||
* @param principal
|
||||
* the authentication principal stored in the security context
|
||||
*
|
||||
* @return response of the servlet which in case of success is status code
|
||||
* {@link HttpStatus#OK} or in case of partial download
|
||||
@@ -43,7 +43,7 @@ public interface DdiDlArtifactStoreControllerRestApi {
|
||||
+ "/{fileName}")
|
||||
@ResponseBody
|
||||
ResponseEntity<InputStream> downloadArtifactByFilename(@PathVariable("tenant") final String tenant,
|
||||
@PathVariable("fileName") final String fileName, @AuthenticationPrincipal final String targetid);
|
||||
@PathVariable("fileName") final String fileName, @AuthenticationPrincipal final Object principal);
|
||||
|
||||
/**
|
||||
* Handles GET MD5 checksum file download request.
|
||||
|
||||
Reference in New Issue
Block a user