File tree 1 file changed +6
-1
lines changed
dockerHashing/src/main/scala/cromwell/docker/registryv2
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,11 @@ abstract class DockerRegistryV2Abstract(override val config: DockerRegistryConfi
157
157
.handleErrorWith(tryOCIManifest)
158
158
}
159
159
160
+ /**
161
+ * Gets the authorization scheme to use for the token request.
162
+ */
163
+ protected def getAuthorizationScheme (dockerImageIdentifier : DockerImageIdentifier ): AuthScheme = AuthScheme .Bearer
164
+
160
165
/**
161
166
* Returns true if this flow is able to process this docker image,
162
167
* false otherwise
@@ -241,7 +246,7 @@ abstract class DockerRegistryV2Abstract(override val config: DockerRegistryConfi
241
246
manifestHeader : Accept
242
247
): IO [Request [IO ]] = {
243
248
val authorizationHeader : Option [Authorization ] =
244
- token.map(t => Authorization (Credentials .Token (AuthScheme . Bearer , t)))
249
+ token.map(t => Authorization (Credentials .Token (getAuthorizationScheme(imageId) , t)))
245
250
val request = Method .GET (
246
251
buildManifestUri(imageId),
247
252
List (
You can’t perform that action at this time.
0 commit comments