Modify

Opened 4 years ago

Last modified 8 months ago

#6879 assigned enhancement

Add external site authentication

Reported by: falkb Owned by: rjollos
Priority: normal Component: IncludeMacro
Severity: normal Keywords: remote authentication https
Cc: Trac Release: 0.10

Description (last modified by rjollos)

I simply tried to embed another intranet page by:

[[Include(https://172.20.1.4/trac)]]

but just get this error:

Error while retrieving file

HTTP Error 401: Authorization Required

What can I do? There's no documentation how to setup such authorization. The complete trac site is via https here. I use the SSPI Plugin on a trac 0.10.4, Python 2.4, Apache Webserver 2.2 (xampp 1.6.4) on Windows

Attachments (0)

Change History (5)

comment:1 follow-up: Changed 2 years ago by rjollos

  • Description modified (diff)

falkb, are you still on Trac 0.10? If not, would you be willing to test out the latest trunk? I've done some work on the plugin recently.

comment:2 in reply to: ↑ 1 Changed 2 years ago by falkb

Replying to rjollos:

falkb, are you still on Trac 0.10?

No, 0.12.2 now

If not, would you be willing to test out the latest trunk? I've done some work on the plugin recently.

Today's trunk still tells the same error as I tried to include another wiki page of the same Trac project.

DEBUG logging just wrote

...... formatter.py:285 DEBUG: Executing Wiki macro Include by provider <includemacro.macros.IncludeMacro object at 0x067EF970>

comment:3 Changed 22 months ago by falkb

I'm behind a proxy server which must be configured somehow. I'm not sure if that is an Apache configuration or must be globally set in trac.ini or if each Trac plugin must set the proxy configuration by itself.

It might be a proxy server problem we probably must fix this way (???):

  proxy_handler = urllib2.ProxyHandler({'http': 'http://myusername:mypassword@myproxyserver:myproxyserverport/'})
  opener = urllib2.build_opener(proxy_handler)
  chart = opener.open(...)

I'm not sure. Anyway I just see in line 62 of macros.py code without proxy handling:

   urlf = urllib2.urlopen(source)

comment:4 Changed 21 months ago by hasienda

  • Keywords remote authentication added; Authorization removed
  • Owner changed from coderanger to rjollos
  • Summary changed from cannot include https page, says "Authorization Required" to Add external site authentication
  • Type changed from defect to enhancement

There's no claim for remote authentication support for this plugin. I take it, that this is a feature request of yours, right?

Furthermore, there are other related tickets, but this is is the one with most recent comments. Following actions should help to push the issue:

  • #2278 has been closed as a duplicate of this ticket despite being earlier and at least having some code-snippets in it.
  • #7261 has been closed as a duplicate of this ticket.

See #4743 for some code claiming to implement remote authentication (full source, no patch yet). Ryan might even decide to move code over to this ticket for better issue tracking, because it's rather unrelated to the main topic of that ticket - InterTrac.

comment:5 Changed 8 months ago by rjollos

  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.