#5423 Logout redirects to plain text HTTP
Opened by crameleon. Modified

Using the "Log Out" function on our Pagure instance (code.opensuse.org) in Firefox shows

Secure Site Not Available
Youve enabled HTTPS-Only Mode for enhanced security, and a HTTPS version of code.opensuse.org is not available.

while trying to redirect to dashboard/projects. Confirming the security warning then follows with another redirect to the OpenID provider (correctly using HTTPS).

Downstream issue https://progress.opensuse.org/issues/152709.


Metadata Update from @ngompa:
- Issue tagged with: UI, bug

Metadata Update from @ngompa:
- Issue tagged with: easyfix

This is weird, because judging by your configuration, @bmwiedemann configured it for HTTPS two years ago: https://code.opensuse.org/heroes/salt/c/721fdf3f2567de523756f6c625cb397a9b450ecf

@pingou Hello, I am Daisy an Outreachy intern and I would like to work on this issue. Can it be assigned to me? Kindly advice.

@ngompa Could you assign it to them please?

I suggest to just work on it if you feel like it, there's no other activity around this issue anyways.

Metadata Update from @wombelix:
- Issue assigned to sawe-dee

@sawe-dee I assigned the issue to you, please feel free to work on it and let me know if you need help.

Metadata Update from @wombelix:
- Issue set to the milestone: 6.0

Metadata Update from @wombelix:
- Issue set to the milestone: 5.14 (was: 6.0)

Metadata Update from @wombelix:
- Issue assigned to wombelix (was: sawe-dee)

The config parameter PREFERRED_URL_SCHEME doesn't exist in current code base anymore.

It was introduced in commit f1a2e7c63c3ac5679133e04fabd1286345716b82 = Temporarily bundle python-fedora's flask_fas_openid and then removed in commit bbfabf00f0ba2d845bc62b68ab9b7ce54e569d51 = Use the python-fedora version of flask_fas_openid.

So it comes from https://github.com/fedora-infra/python-fedora/blob/develop/flask_fas_openid.py#L323
Which means it has to be fixed upstream and not in pagure.

@crameleon @bmwiedemann can you please report the issue here: https://github.com/fedora-infra/python-fedora/issues

Metadata Update from @wombelix:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

Metadata Update from @wombelix:
- Issue status updated to: Open (was: Closed)

Metadata Update from @wombelix:
- Issue untagged with: UI, easyfix
- Issue set to the milestone: None (was: 5.14)
- Issue tagged with: upstream

Metadata Update from @wombelix:
- Assignee reset

Hi,

that code refers to a configuration value. Can we set this configuration somewhere, if not in Pagure itself?

Metadata