On Mittwoch, 27. Oktober 2021, 11:39:29 CEST Nicolas Formichella wrote:
> Hello,
> I'm encountering an issue regarding access through `curl` and python's `requests` against `build.opensuse.org`
>
> Using `osc` when running
> ```
> osc api /source
> ```
> work with no trouble and lists the projects.
>
> But I didn't got that to work outside of `osc`
>
> Whatever I do regarding basic auth headers (build it myself, let curl/requests do it), I get a error 401 with :
> ```
> <status code="anonymous_user">
>   <summary>Anonymous user is not allowed here - please login</summary>
> </status>
> ```
> Full connection log : [1]
>
> Password is known good as it works in `osc` (fails even if I try to get it from GNOME-keyring through `python-keyring`)
>
> What could be my issue?
> try using api.opensuse.org instead of build.o.o

> --

> Adrian Schroeter <adrian@suse.de>
> Build Infrastructure Project Manager

> SUSE Software Solutions Germany GmbH,  Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer

It works, thanks

Regards

De : Adrian Schröter <adrian@suse.de>
Envoyé : mercredi 27 octobre 2021 11:46
À : buildservice@lists.opensuse.org <buildservice@lists.opensuse.org>
Cc : Nicolas Formichella <stigpro@outlook.fr>
Objet : Re: HTTP Authentication issue
 
On Mittwoch, 27. Oktober 2021, 11:39:29 CEST Nicolas Formichella wrote:
> Hello,
> I'm encountering an issue regarding access through `curl` and python's `requests` against `build.opensuse.org`
>
> Using `osc` when running
> ```
> osc api /source
> ```
> work with no trouble and lists the projects.
>
> But I didn't got that to work outside of `osc`
>
> Whatever I do regarding basic auth headers (build it myself, let curl/requests do it), I get a error 401 with :
> ```
> <status code="anonymous_user">
>   <summary>Anonymous user is not allowed here - please login</summary>
> </status>
> ```
> Full connection log : [1]
>
> Password is known good as it works in `osc` (fails even if I try to get it from GNOME-keyring through `python-keyring`)
>
> What could be my issue?

try using api.opensuse.org instead of build.o.o

--

Adrian Schroeter <adrian@suse.de>
Build Infrastructure Project Manager

SUSE Software Solutions Germany GmbH,  Maxfeldstr. 5, 90409 Nuernberg, Germany
(HRB 247165, AG München), Geschäftsführer: Felix Imendörffer