# Ticket #6879 (new enhancement)

Opened 3 years ago

Reported by: Assigned to: falkb rjollos normal IncludeMacro normal remote authentication https 0.10

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

## Change History

### (follow-up: ↓ 2 ) 05/08/12 06:21:48 changed by rjollos

• description changed.

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.

### (in reply to: ↑ 1 ) 05/08/12 08:11:47 changed by falkb

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>


### 10/26/12 15:11:02 changed 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)


### 12/13/12 21:38:21 changed by hasienda

• keywords changed from https Authorization to remote authentication https.
• owner changed from coderanger to rjollos.
• type changed from defect to enhancement.
• summary changed from cannot include https page, says "Authorization Required" to Add external site authentication.

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.