[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] output file transfer using oauth token



Re-sending now that I'm subscribed.

On Thu, Oct 27, 2022 at 03:52:55PM -0500, Dave Dykstra wrote:
> That looks like a bug to me.  I think there were other things in Condor
> that were using that format at one point but it's unusable for WLCG
> Bearer Token Discovery so I think it was changed or was going to be
> changed.
> 
> Dave
> 
> On Thu, Oct 27, 2022 at 08:14:05PM +0000, Kevin Retzke wrote:
> > I'm trying to have a job upload output to dcache over https, authenticating with a scitoken. In my submit file I have:
> > 
> > use_oauth_services = dune
> > output_destination = dune+https://example.com/foo/bar
> > 
> > Condor does send the token at $_CONDOR_CREDS/dune.use, but this file only contains the encoded token itself, which we expect in order to use the token in the job. However, uploading output fails with "Unable to parse token as JSON", since the file transfer plugin expects the dune.use file to be JSON with the token under the "access_token" field. https://github.com/htcondor/htcondor/blob/main/src/condor_filetransfer_plugins/multifile_curl_plugin.cpp#L131
> > 
> > Is this a bug in the file transfer plugin, or can I just not use the oauth token like that? The documentation suggests it should work in https://htcondor.readthedocs.io/en/latest/users-manual/file-transfer.html#file-transfer-using-a-url
> > 
> > condor 9.0.16 on the schedd
> > 
> > Thanks,
> > Kevin