Ticket #68 (defect)

Opened 5 months ago

Last modified 5 months ago

https over non-standard port

Status: new

Reported by: marc.sauter@postfinance.ch Assigned to: somebody
Priority: minor Milestone:
Component: component1 Version:
Keywords: Cc: james@pythonweb.org

Since authkit 0.4.3 (or even earlier) it is no longer possible to use https over a non-standard port (e.g. https://localhost:5000).

With the following patch for construct_url (in authkit/authenticate/form.py) it will work again:

    if port:
        if str(port) == '443':
            url = 'https'+url
        elif str(port) == '80':
            url = 'http'+url
        elif environ['wsgi.url_scheme'] == 'https':
            # Running HTTPS on a non-standard port
            url = 'https'+url+':%s' % port
        else:
            # Assume we are running HTTP on a non-standard port
            url = 'http'+url+':%s' % port

Attachments

Change History

04/16/09 11:25:43: Modified by anonymous

  • cc set to james@pythonweb.org.

Add/Change #68 (https over non-standard port)




Change Properties
Action