diff --git a/lib/gui/app/components/source-selector/source-selector.tsx b/lib/gui/app/components/source-selector/source-selector.tsx index 3f0b193d..d6fdc637 100644 --- a/lib/gui/app/components/source-selector/source-selector.tsx +++ b/lib/gui/app/components/source-selector/source-selector.tsx @@ -315,6 +315,7 @@ export interface SourceMetadata extends sourceDestination.Metadata { drive?: DrivelistDrive; extension?: string; archiveExtension?: string; + auth?: Authentication; } interface SourceSelectorProps { @@ -529,6 +530,7 @@ export class SourceSelector extends React.Component< } if (metadata !== undefined) { + metadata.auth = auth; selectionState.selectSource(metadata); analytics.logEvent('Select image', { // An easy way so we can quickly identify if we're making use of diff --git a/lib/gui/modules/child-writer.ts b/lib/gui/modules/child-writer.ts index b517ba18..24630c77 100644 --- a/lib/gui/modules/child-writer.ts +++ b/lib/gui/modules/child-writer.ts @@ -291,9 +291,14 @@ ipc.connectTo(IPC_SERVER_ID, () => { url: imagePathObject.url, avoidRandomAccess: true, axiosInstance: axios.create(_.omit(imagePathObject, ['url'])), + auth: options.image.auth, }); } else { - source = new Http({ url: imagePath, avoidRandomAccess: true }); + source = new Http({ + url: imagePath, + avoidRandomAccess: true, + auth: options.image.auth, + }); } } }